ResultSummarizer doesn't count tests with [RequiresSTA]

Bug #684821 reported by Charlie Poole
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NUnit V2
Fix Released
High
Charlie Poole

Bug Description

From Patrick (<email address hidden>)

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,

Related branches

Revision history for this message
Charlie Poole (charlie.poole) wrote :

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.

Revision history for this message
Charlie Poole (charlie.poole) wrote :

Seems related to bug #684598

Changed in nunitv2:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Charlie Poole (charlie.poole)
milestone: none → 2.5.9
Changed in nunitv2:
status: In Progress → Fix Committed
Changed in nunitv2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.