Created
March 1, 2021 02:18
-
-
Save bklooste/c52e1ec6f04a2f323363a507ac5e5dd9 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
echo "unit tests and coverage" && ls && pwd && dotnet test --filter UnitTest --results-directory /testresults --logger "trx;LogFileName=test_results.xml" /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:CoverletOutput=/testresults/coverage/ /p:Exclude="[xunit.*]*%2c[StackExchange.*]*" | |
dotnet tool install dotnet-reportgenerator-globaltool --version 4.8.5 --tool-path /tools | |
/tools/reportgenerator "-reports:/testresults/coverage/coverage.cobertura.xml" "-targetdir:/testresults/coverage/reports" "-reporttypes:HTMLInline;HTMLChart" | |
ls -la /testresults/coverage/reports |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment