Skip to content

Instantly share code, notes, and snippets.

@StefH
Last active November 2, 2018 12:18
Show Gist options
  • Save StefH/a724c923ccd134b8de50e28b493d296f to your computer and use it in GitHub Desktop.
Save StefH/a724c923ccd134b8de50e28b493d296f to your computer and use it in GitHub Desktop.
# Build source, tests and run tests with coverage
- script: |
dotnet test ./test/MyTestProject.csproj -c Debug --logger trx /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
displayName: 'Build source, tests and run tests with coverage'
# Upload coverage to codecov.io
- script: |
%USERPROFILE%\.nuget\packages\codecov\1.1.0\tools\codecov.exe -f "./test/MyTestProject/coverage.opencover.xml" -t $(CODECOV_TOKEN)
displayName: Upload coverage to codecov.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment