visualstudio.xunit
visualstudio.xunit copied to clipboard
Test execution outcome is not displayed in the test runner window
I have created a custom test attribute. Internally it is using the test discoverer etc. classes that are derived from the Xunit classes, I am not implementing just the interfaces. I am using Xunit v.2.4.1
There are some issues
- in the VS.NET 2019 Test Explorer window the tests are displayed using the full name
- when I run all the tests, the tests marked with my attribute are not executed (
Not Run
)- however, in the output windows I can see the tests being executed and their outcome dumped to console
- when I change the attribute to
[Fact]
it works - tests are executed and outcome displayed in Test Explorer - when I change my code to return the defaults, i.e. calling base method in the overridden methods and nothing else, it also does not work
[03/04/2020 1:15:15.019 PM] [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v2.4.1 (32-bit Desktop .NET 4.0.30319.42000)
[03/04/2020 1:15:15.129 PM] [xUnit.net 00:00:00.11] Starting: ScreenplayScenarios (parallel test collections = on, max threads = 16)
[03/04/2020 1:15:15.170 PM] [xUnit.net 00:00:00.15] ScreenplayScenarios: Running NotWorkingToo
[03/04/2020 1:15:15.173 PM] [xUnit.net 00:00:00.15] Finished: ScreenplayScenarios
The project is available here https://github.com/kfrajtak/Screenplay.Xunit.
Generally speaking, applying my custom attribute does not display the test execution in Test Explorer. I checked the Xunit.samples project and even copied the code to my solution, but it did not work.
If you enable diagnostics is there anything additionally in the output that helps to diagnose the issue?
Also, transferring to the correct repository: https://github.com/xunit/visualstudio.xunit
The project is not currently buildable/upgradeable, and no response from the OP, so closing for age.