You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\8.0.400\
The text was updated successfully, but these errors were encountered:
chrisfcarroll
changed the title
dotnet test path/to/my.sln returns exit code 1 when all tests pass, if --testfilter excludes all tests in 1 or more dlls
dotnet test path/to/my.sln returns exit code 1 when all tests pass, if a --testfilter excludes all tests in one project
Aug 30, 2024
chrisfcarroll
changed the title
dotnet test path/to/my.sln returns exit code 1 when all tests pass, if a --testfilter excludes all tests in one project
dotnet test path/to/my.sln returns exit code 1 when all tests pass if an unrelated project in the solution has a build error
Aug 30, 2024
Description
dotnet test $(solution) fails even though all tests pass, if the solution includes a project that fails to build.
Steps to reproduce
Expected behavior
All tests pass, and all the projects that the tests depending on built, so the exit code should be 0
Actual behavior
All the filtered tests pass, but dotnet returns exit code 1 because of the unrelated build error.
Diagnostic logs
Environment
.NET SDK:
Version: 8.0.400
Commit: 36fe6dda56
Workload version: 8.0.400-manifests.56cd0383
MSBuild version: 17.11.3+0c8610977
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\8.0.400\
The text was updated successfully, but these errors were encountered: