Seddryck / NBi

NBi is a testing framework (add-on to NUnit) for Business Intelligence and Data Access. The main goal of this framework is to let users create tests with a declarative approach based on an Xml syntax. By the means of NBi, you don't need to develop C# or Java code to specify your tests! Either, you don't need Visual Studio or Eclipse to compile your test suite. Just create an Xml file and let the framework interpret it and play your tests. The framework is designed as an add-on of NUnit but with the possibility to port it easily to other testing frameworks.
http://www.nbi.io
Apache License 2.0
106 stars 37 forks source link

TestResult.xml - missing content if tests contain error using Nunit console #690

Closed fefeslon closed 1 year ago

fefeslon commented 1 year ago

Hi All,

When I run the NBi tests using the nunit3 console, if there is en error message in any of the tests then the TestResult.xml is empty and does not contain the result data (only the test run tag and command line tag inside it with the run parameters).

If I run the very same tests using the Nunit 2.4 GUI, the TestResult.xml contains both, the tests data (either passed of failed) and the error data (e.g. duplicities in keys, hexadecimal errors in the OLAP cubes etc.)

Is there a way to get the very same result using the nunit3 console?

Maybe this is more of nunit thing than NBi, but I would be thankful for any advice/documentation.

Cheers.

Seddryck commented 1 year ago

NBi 1.x is not using NUnit 3.x but NUnit 2.x. There is a branch (dev_v2) with a port of NBi to NUnit 3.x but not all tests are already migrated.

AFAIK, using NUnit GUI 3.x with NUnit 2.x requires the user of an adapter to generate the results in the same format than NUnit GUI 2.x. It's surely documented on NUnit repository.

fefeslon commented 1 year ago

Ah ok..

I have been using the nunit3 console (by mistake) whole time without any problems until I got the tests with error as test result (didn't even notice I should have used 2.x).

Thanks for the explanation.

Cheers.