-
Notifications
You must be signed in to change notification settings - Fork 285
Closed
Labels
Description
Describe the bug
dotent test
for --solution
doesn't work as expected and useless in current implementation
If solution have not only test projects you will get an error:
Test run summary: Zero tests ran
Unhandled exception: One or more errors occurred. (Unable to run your project.
Ensure you have a runnable project type and ensure 'dotnet run' supports this project.
A runnable project should target a runnable TFM (for instance, net5.0) and have OutputType 'Exe'.
The current OutputType is 'Library'.) (Unable to run your project.
Ensure you have a runnable project type and ensure 'dotnet run' supports this project.
A runnable project should target a runnable TFM (for instance, net5.0) and have OutputType 'Exe'.
The current OutputType is 'Library'.)
total: 0
failed: 0
succeeded: 0
skipped: 0
duration: 1s 088ms
Error: Process completed with exit code 1.
Steps To Reproduce
- add dotnet.config for mtp
- Create new solution
- Add empty class library
- Add valid test project with 1 green test. Test project should be configured for MTP
- run
dotnet test --solution <path>.
Expected behavior
Only test project is executed and tests are green
Actual behavior
Test run summary: Zero tests ran
Unhandled exception: One or more errors occurred. (Unable to run your project.
Ensure you have a runnable project type and ensure 'dotnet run' supports this project.
A runnable project should target a runnable TFM (for instance, net5.0) and have OutputType 'Exe'.
The current OutputType is 'Library'.)
total: 0
failed: 0
succeeded: 0
skipped: 0
duration: 1s 088ms
Error: Process completed with exit code 1.
Additional context
- .NET 10 RC1
- dotnet.config configured for MTP mode
- MsTest 4.0.0 used as test framework, but looks like this is
dotnet test
bug