Skip to content

Instantly share code, notes, and snippets.

@bklooste
Created March 1, 2021 02:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bklooste/c52e1ec6f04a2f323363a507ac5e5dd9 to your computer and use it in GitHub Desktop.
Save bklooste/c52e1ec6f04a2f323363a507ac5e5dd9 to your computer and use it in GitHub Desktop.
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