This project is read-only.

Assert failures reported as Errors by NUnit/NBi

Oct 31, 2014 at 7:55 PM
Edited Oct 31, 2014 at 7:56 PM
Hello,
I have a number of structural cube tests set up in my NBi test suite. For example, I am asserting that a certain dimension hierarchy contains an explicit set of items. If I add an item to my assert test that I know does not exist, I would expect it to be reported back as a Failure, but it is showing as an Error.

I would expect an Error to be reported when the test actually crashes or some other condition happens which does not allow the test to run. To me a Failure is when the test does not get back the expected values, which is the condition I am simulating. Does NBi show all Failures as Errors? Advice appreciated. Thanks
Nov 1, 2014 at 1:18 AM
Yes in theory, you're right (100% right). These tests should be reported as failures and not as errors.

Unfortunately due to the way NUnit 2.x is analyzing if it's a failure or an error (based on GetType().Fullname), I'm not able to report failures. I hope that the effective implementation of NUnit in version 3.0 will let me fix this.
Nov 1, 2014 at 1:33 AM
Thanks for the update Seddryck. Understood.