This test have a set of Asserts in its OneTimeTearDown method.
These asserts show up as errors in Rider and Resharper, but in dotnet test, nor in Test Explorer in Visual Studio.
I have moved it into a separate repro test https://github.com/nunit/nunit.issues/tree/main/Issue4906
There are several issues here:
-
The test fails, so we have an error we have not detected.
This the essence of this Issue.
This test seems to have been written way back, in 2014/2015
The testfixture has one Explicit test, and checks that tthe Result.SkipCOunt is equalto 1. It is not.

-
(This pt should probably be transferred to the adapter) Rider/Resharper detects that this is a fault. It is not reported in VS/dotnet , it stops in the adapter. Enabling the dump I see it in the response from the engine/framework, but as it is test output, we have nowhere to put that output.
I know that MSTest adds a kind of extra test node in these cases. We could do the same. In NUnit all suites are also tests, and might have information. It would make sense to be able to show that. Rider does this too, so you see the node is failing.
In VS it is shown in the Output/Test window:

Further, NUnitLite does show it, but it is suppressed somewhere in out NUnit build output. I see it in the repro code I made.
Dump file output:

In the dump file we can also see that the skippedcount is 0, ref pt 1 here.
The repro is here: https://github.com/nunit/nunit.issues/tree/main/Issue4906
- The repro has been enabled for NUNitLite.
When running with VS the error is visible in the Output/Test as mentioned above.
When running with NUnitLite, it is not there, and debugging it, show SkippedCount = 1. Which is correct. I have no clue yet why it works when seperated out into this repro, and ONLY when running with NUnitLite.
@manfred-brands @stevenaw Comments ? @rprouse @CharliePoole You guys wrote this test 10 years ago. Does the console show this node? Is this pre-adapter ? Any idea why NUnitLite is confused ?
[UPDATE]
Just checked with the console:

It doesn't react to the test either.
But Rider does:

This test have a set of Asserts in its OneTimeTearDown method.
These asserts show up as errors in Rider and Resharper, but in dotnet test, nor in Test Explorer in Visual Studio.
I have moved it into a separate repro test https://github.com/nunit/nunit.issues/tree/main/Issue4906
There are several issues here:
The test fails, so we have an error we have not detected.

This the essence of this Issue.
This test seems to have been written way back, in 2014/2015
The testfixture has one Explicit test, and checks that tthe Result.SkipCOunt is equalto 1. It is not.
(This pt should probably be transferred to the adapter) Rider/Resharper detects that this is a fault. It is not reported in VS/dotnet , it stops in the adapter. Enabling the dump I see it in the response from the engine/framework, but as it is test output, we have nowhere to put that output.

I know that MSTest adds a kind of extra test node in these cases. We could do the same. In NUnit all suites are also tests, and might have information. It would make sense to be able to show that. Rider does this too, so you see the node is failing.
In VS it is shown in the Output/Test window:
Further, NUnitLite does show it, but it is suppressed somewhere in out NUnit build output. I see it in the repro code I made.
Dump file output:

In the dump file we can also see that the skippedcount is 0, ref pt 1 here.
The repro is here: https://github.com/nunit/nunit.issues/tree/main/Issue4906
When running with VS the error is visible in the Output/Test as mentioned above.
When running with NUnitLite, it is not there, and debugging it, show SkippedCount = 1. Which is correct. I have no clue yet why it works when seperated out into this repro, and ONLY when running with NUnitLite.
@manfred-brands @stevenaw Comments ? @rprouse @CharliePoole You guys wrote this test 10 years ago. Does the console show this node? Is this pre-adapter ? Any idea why NUnitLite is confused ?
[UPDATE]

Just checked with the console:
It doesn't react to the test either.
But Rider does:
