Skip to content

Commit

Permalink
Fix upload script not finding test reports
Browse files Browse the repository at this point in the history
  • Loading branch information
skwasjer committed Oct 16, 2019
1 parent 204017d commit aa01d3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ build:
publish_nuget_symbols: true
verbosity: minimal
test_script:
- OpenCover.Console.exe -target:"dotnet.exe" -targetargs:"test -c Debug /p:DebugType=full -l:trx;LogFilePrefix=test-results" -output:coverage.xml -register:user -returntargetcode -filter:"+[IbanNet*]* -[*Tests]*" -excludebyattribute:*.ExcludeFromCodeCoverageAttribute;*.GeneratedCodeAttribute;*.DebuggerNonUserCodeAttribute;*.CompilerGeneratedAttribute;*.DebuggerHiddenAttribute -oldStyle
- OpenCover.Console.exe -target:"dotnet.exe" -targetargs:"test -c Debug /p:DebugType=full -l:trx;LogFilePrefix=testresults" -output:coverage.xml -register:user -returntargetcode -filter:"+[IbanNet*]* -[*Tests]*" -excludebyattribute:*.ExcludeFromCodeCoverageAttribute;*.GeneratedCodeAttribute;*.DebuggerNonUserCodeAttribute;*.CompilerGeneratedAttribute;*.DebuggerHiddenAttribute -oldStyle
- codecov -f coverage.xml
- ps: '& .\ci\upload-testresults.ps1'
deploy:
Expand Down
2 changes: 1 addition & 1 deletion ci/upload-testresults.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$wc = New-Object 'System.Net.WebClient'

$files = Get-ChildItem test-result*.trx -Recurse
$files = Get-ChildItem *.trx -Recurse

$uploadUri = "https://ci.appveyor.com/api/testresults/mstest/$($env:APPVEYOR_JOB_ID)"
Write-Host "Uploading test results to $($uploadUri)"
Expand Down

0 comments on commit aa01d3f

Please sign in to comment.