Last active
November 2, 2018 12:18
-
-
Save StefH/a724c923ccd134b8de50e28b493d296f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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