nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #01397
[Bug 684821] Re: ResultSummarizer doesn't count tests with [RequiresSTA]
This note on nunit-discuss is probably related since the assertion
count comes from the TestContext...
>From stathis...
I'm not sure if you are aware of this but the TestContext object
doesn't get properly initialized (is null) if the test/fixture has the
timeout attribute.
--
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/684821
Title:
ResultSummarizer doesn't count tests with [RequiresSTA]
Status in NUnit V2 Test Framework:
New
Bug description:
From Patrick (support@xxxxxxxxxx)
I found a problem in NUnit.
I am refactoring the way my tests are executed and found out that when running through
NUnit.ConsoleRunner.Runner.Main()
the ResultSummarizer doesn't count tests in a test suite class tagged with [RequiresSTA], I guess it is because they are ran on a separate thread
investigating further, by putting a breakpoint I can see that 'STA tests' are runned, when running through
NUnit.ConsoleRunner.Runner.Main()
but if one of the 'STA tests' is in error, a F is shown in the list of dots, but the error is not reported in the ResultSummarizer
Let me know if I can help further,
References