Description
Description
When running dotnet test
on a test project in dotnet/runtime that targets .NETFramework I expect tests to run, but they do not. Seems like we have lots of other issues mentioning this, but I couldn't find an active one.
Reproduction Steps
build clr+libs -rc Release
cd src\libraries\System.Collections.Immutable\tests
dotnet test -f:net462
Expected behavior
Tests run.
Discovering: System.Collections.Immutable.Tests (app domain = on [no shadow copy], method display = ClassAndMethod,
method display options = None)
Discovered: System.Collections.Immutable.Tests (found 4008 of 4123 test cases)
Starting: System.Collections.Immutable.Tests (parallel test collections = on, max threads = 16)
Actual behavior
No tests run:
Test run for c:\src\dotnet\runtime\artifacts\bin\System.Collections.Immutable.Tests\Debug\net462\System.Collections.Immutable.Tests.dll (.NETFramework,Version=v4.6.2)
Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
No test is available in c:\src\dotnet\runtime\artifacts\bin\System.Collections.Immutable.Tests\Debug\net462\System.Collections.Immutable.Tests.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.
Regression?
I think this is a recent regression. I believe this used to work as I remember seeing test failures on framework when running with dotnet test.
Known Workarounds
Directly invoke the test
target.
\src\dotnet\runtime.dotnet\dotnet build /t:test -f:net462
Configuration
No response
Other information
No response