Skip to content

Commit

Permalink
Don't restore when re-building tests with merged assemblies
Browse files Browse the repository at this point in the history
  • Loading branch information
odinserj committed Mar 28, 2024
1 parent 86f703c commit 9dad635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psake-project.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Task Test -Depends Merge -Description "Run unit and integration tests against me
# Dependencies shouldn't be re-built, because we need to run tests against merged assemblies to test
# the same assemblies that are distributed to users. Since the `dotnet test` command doesn't support
# the `--no-dependencies` command directly, we need to re-build tests themselves first.
Exec { ls "tests\**\*.csproj" | % { dotnet build -c Release --no-dependencies $_.FullName } }
Exec { ls "tests\**\*.csproj" | % { dotnet build -c Release --no-restore --no-dependencies $_.FullName } }

# We are running unit test project one by one, because pipelined version like the line above does not
# support halting the whole execution pipeline when "dotnet test" command fails due to a failed test,
Expand Down

0 comments on commit 9dad635

Please sign in to comment.