Rubberduck: Inconclusive "not the same type" unit test result should provide more information

Created on 16 Aug 2019  路  4Comments  路  Source: rubberduck-vba/Rubberduck

The inconclusive test result "[expected] and [actual] values are not the same type." gives no additional information, making it very hard to identify what went wrong in a test where there are more than one assert.

Ideally it would show the values (and types) of expected and actual, but if this is difficult then it would be ok if we could simply have the assert description show so that one can easily identify which assert failed.

difficulty-01-duckling enhancement feature-unit-testing up-for-grabs

Most helpful comment

I'd be happy to take a go at this!

All 4 comments

I'd be happy to take a go at this!

@mai-am happy to hear this. You'll probably want to poke around in the AssertClass. If I understood correctly, the relevant code is Line 350.

You can find the class in the Rubberduck.Main project under ComClientLibrary/UnitTesting. It's there to register the class for COM access. There's other COM-visible unit-testing code in the same folder and the internals for Unit testing are in the Rubberduck.UnitTesting module.

Hey @mai-am it's been a week, is there anything I can do to help you?

@Vogel612 Sorry! I've been having trouble running the project. Perhaps someone else wants to take a shot? Don't have a lot of time ATM.

Was this page helpful?
0 / 5 - 0 ratings