Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test result numbers are wrong/empty #505

Closed
elielia opened this issue Nov 28, 2018 · 7 comments
Closed

Test result numbers are wrong/empty #505

elielia opened this issue Nov 28, 2018 · 7 comments

Comments

@elielia
Copy link

elielia commented Nov 28, 2018

Running the nunit3-console (3.9) on a dll, and redirect the results to a file.
I always get that the number of tests was 45, but 0 failed, 0 passed, 0 etc., altought I see that most of the tests passed and some failed. The numbers are just wrong.

Thanks

@mikkelbu
Copy link
Member

Hi @elielia
You'll need to provide some more information for us to help you. Can you provide what is written to screen by the console or perhaps the resulting TestResult.xml.

@elielia
Copy link
Author

elielia commented Nov 29, 2018

Hi, thanks for the response.
Attached a results XML that I just got.

tests-results.txt

@CharliePoole
Copy link
Contributor

The result XML looks OK except for the cumulative totals. You have six tests, one failed and five passed,
but the totals in the containing suites are always 0 passed and 0 failed. That's strange!

Please tell us (1) how you are running the tests... i.e. exact command-line and (2) exactly what versions of both the framework and the runner you are using.

@mikkelbu
Copy link
Member

I've looked into the XML and my finding are:

  • Commandline is packages\NUnit.ConsoleRunner.3.9.0\tools\nunit3-console StoreKat.Infrastructure.IntegrationTests\bin\debug\StoreKat.Infrastructure.IntegrationTests.dll --result=infrastructure-integration-tests.txt
  • EnsureGetForDetailOnlyReturnsAvailableSpace throws an exception, but this should not affect the cumulative totals in the other fixtures
  • SpaceNotificationRepositoryTests is ignored, but there is no reason (which is required in NUnit3, so this and the name _IGNOREREASON tells me that the test project is referencing NUnit 2. Is that correct?).

Do you have any Setups, SetUpFixtureAttribute, TestFixtureSetUpAttribute .... or TearDowns in the tests?

@elielia
Copy link
Author

elielia commented Dec 3, 2018

You are correct.
Yes there is (I am new to this code), but seems like nothing special. Only thing can be using TransactionScope.
Any ideas?

@CharliePoole
Copy link
Contributor

@mikkelbu I think you are right that the version of the framework in use is the critical thing here. It's the framework that creates the cumulative totals as well. It's not the current version because the XML for suites doesn't have total warnings and there is no start or end time on the tests. It could be V2 as you say or it could be an early NUnit 3, before we added those features.

@elielia We need to know what framework version you are using as well as what .NET runtime you are targeting with your tests in order to figure out any more.

@mikkelbu
Copy link
Member

mikkelbu commented Mar 2, 2019

Closing this issue due to lack of activity. Note that we will still see new comments, so we can reopen the issue if anyone has more to add.

@mikkelbu mikkelbu closed this as completed Mar 2, 2019
@mikkelbu mikkelbu added this to the Closed Without Action milestone Mar 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants