Skip to content

Commit 39472dd

Browse files
Update ci-test.ps1
1 parent 001c9b1 commit 39472dd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ci-test.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ param(
1212
)
1313

1414
$netFxRegex = '^net\d+'
15+
$solution = Join-Path $PSScriptRoot "ImageSharp.Drawing.CI.slnf"
1516

1617
if ($codecov -eq 'true') {
1718

1819
# Allow toggling of profile to workaround any potential JIT errors caused by code injection.
19-
dotnet clean -c $codecovProfile
20-
dotnet test --collect "XPlat Code Coverage" --settings .\tests\coverlet.runsettings -c $codecovProfile -f $targetFramework /p:CodeCov=true
20+
dotnet clean $solution -c $codecovProfile
21+
dotnet test $solution --collect "XPlat Code Coverage" --settings .\tests\coverlet.runsettings -c $codecovProfile -f $targetFramework /p:CodeCov=true
2122
}
2223
elseif ($platform -eq '-x86' -and $targetFramework -match $netFxRegex) {
2324

@@ -33,5 +34,5 @@ elseif ($platform -eq '-x86' -and $targetFramework -match $netFxRegex) {
3334
}
3435
else {
3536

36-
dotnet test --no-build -c Release -f $targetFramework
37+
dotnet test $solution --no-build -c Release -f $targetFramework
3738
}

0 commit comments

Comments
 (0)