Skip to content

Commit 827dfb5

Browse files
committed
bug: testresult trx file missing failing build
1 parent d0d2cc2 commit 827dfb5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,14 @@ Try {
4242

4343
Exec { dotnet test $_.FullName --configuration $config --no-build --no-restore --logger:"trx;LogFileName=..\..\test-result.trx" }
4444

45+
$testResults = (Resolve-Path .\test-result*.trx)
4546
# if on build server upload results to AppVeyor
4647
if ("${ENV:APPVEYOR_JOB_ID}" -ne "") {
4748
$wc = New-Object 'System.Net.WebClient'
48-
$wc.UploadFile("https://ci.appveyor.com/api/testresults/mstest/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\test-result.trx))
49+
$wc.UploadFile("https://ci.appveyor.com/api/testresults/mstest/$($env:APPVEYOR_JOB_ID)", $testResults)
4950
}
5051

51-
Remove-Item .\test-result.trx -ErrorAction SilentlyContinue
52+
Remove-Item $testResults -ErrorAction SilentlyContinue
5253
}
5354

5455
# Publish the nupkg artifacts

0 commit comments

Comments
 (0)