I have a test assembly which targets both .NET Framework 4.7.1 and .NET 6 because it tests a library which targets .NET Standard 2.0 and may be used in both .NET 4.7.1 and .NET 6 environments. dotnet test executes the tests twice, once for each framework.
However, the test results don't distinguish the tests by framework. In Teamcity, it shows 2 results for each test, but no information as to whether that was the .NET 4.7.1 or .NET 6 execution of the test. I can only determine which framework is being used if I click Show in Build Log and scroll back up to see which assembly is being tested.
I have a test assembly which targets both .NET Framework 4.7.1 and .NET 6 because it tests a library which targets .NET Standard 2.0 and may be used in both .NET 4.7.1 and .NET 6 environments.
dotnet test
executes the tests twice, once for each framework.However, the test results don't distinguish the tests by framework. In Teamcity, it shows 2 results for each test, but no information as to whether that was the .NET 4.7.1 or .NET 6 execution of the test. I can only determine which framework is being used if I click Show in Build Log and scroll back up to see which assembly is being tested.