Skip to content

Commit

Permalink
fix: custom codecov script does not generate and upload unit test res…
Browse files Browse the repository at this point in the history
…ults to AppVeyor
  • Loading branch information
skwasjer committed Jul 24, 2019
1 parent 5dec462 commit 323af41
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ build:
publish_nuget_symbols: true
verbosity: minimal
test_script:
- OpenCover.Console.exe -target:"dotnet.exe" -targetargs:"test -c Debug" -output:coverage.xml -register:user -filter:"+[IbanNet*]* -[*Tests]*" -oldStyle
- OpenCover.Console.exe -target:"dotnet.exe" -targetargs:"test -c Debug -l:trx;LogFileName=test-results.xml" -output:coverage.xml -register:user -filter:"+[IbanNet*]* -[*Tests]*" -oldStyle
- codecov -f coverage.xml
on_finish:
- sh: |
find "$APPVEYOR_BUILD_FOLDER" -type f -name '*/test-results.xml' -print0 | xargs -0 -I '{}' curl -F 'file=@{}' "https://ci.appveyor.com/api/testresults/junit/$APPVEYOR_JOB_ID"
deploy:
- provider: NuGet
api_key:
Expand Down

0 comments on commit 323af41

Please sign in to comment.