dotnet test results: Identify in Tests tab for which framework is the failure happening
Hi,
We are trying to switch our test projects/step to be compatible with dotnet test and also be able to run all our targeted frameworks with one single dotnet test call, but we are encountering some issues. When running from the console, we do see two separate reports, one after the other for each of the frameworks. On TeamCity we see the count of the tests double (OK) and the tests are grouped together, as it is detected as run twice (OK) but there is nothing indicating a test is ran on one framework or the other in the Tests tab.
From the dotnet output, there is a line from the dotnet output with the framework and its version. Is there any way to have the target framework reflected somewhere in the Tests page? Example of the dotnet output for one of our test projects:
Test run for C:\trunk\build472\Shared\NUnitTests.dll (.NETFramework,Version=v4.7.2)
Microsoft (R) Test Execution Command Line Tool Version 17.3.0 (x64)
Copyright (c) Microsoft Corporation. All rights reserved.
Starting test execution, please wait...
<log of tests running in here>
Failed! - Failed: 9, Passed: 23, Skipped: 0, Total: 32, Duration: 7 s - NUnitTests.dll (net472)
Test run for C:\trunk\build60\Shared\NUnitTests.dll (.NETCoreApp,Version=v6.0)
Microsoft (R) Test Execution Command Line Tool Version 17.3.0 (x64)
Copyright (c) Microsoft Corporation. All rights reserved.
Starting test execution, please wait...
<log of tests running in here>
Failed! - Failed: 9, Passed: 23, Skipped: 0, Total: 32, Duration: 7 s - NUnitTests.dll (net6.0)
For some of the other test projects, we happen to have some test failing on one framework but not on the other, and some failing on both, and currently it is impossible to tell from the list (and scrolling thru the log ends up being impossible when the number of tests on each framework large). Having some sort of notation or, even better, some way to filter would be helpful.
Please sign in to leave a comment.