Skip to content

Commit 9210d1e

Browse files
committed
Pass test project via --project flag
Microsoft.Testing.Platform's `dotnet test` integration rejects a positional project argument with the message "Specifying a project for 'dotnet test' should be via '--project'" and exits 1. The previous form `dotnet test path/to/test.csproj` therefore failed on every CI platform without ever invoking the test runner. Using `--project path/to/test.csproj` makes all 17 tests run and pass locally with the same Release/--no-build invocation the workflow uses. https://claude.ai/code/session_017B9mN9F7C3pWGZRyoKBd6R
1 parent 77d73af commit 9210d1e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/cross-platform.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ jobs:
5353
run: dotnet build CredentialCache.sln --configuration Release --no-restore
5454

5555
- name: Test
56-
run: dotnet test CredentialCache.Test/CredentialCache.Test.csproj --configuration Release --no-build
56+
run: dotnet test --project CredentialCache.Test/CredentialCache.Test.csproj --configuration Release --no-build

0 commit comments

Comments
 (0)