Created
February 16, 2021 12:53
-
-
Save CristianoRC/616d43221dfa0b2688c2964c271c5408 to your computer and use it in GitHub Desktop.
Script para automatizar saida do report generator .NET Core
This file contains 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
#!/bin/sh | |
rm -rf resultados | |
rm -rf coveragereport | |
dotnet test --collect:"XPlat Code Coverage" --results-directory:"./resultados/" | |
folder_guid=$(ls resultados) | |
path_result="$(pwd)/resultados/${folder_guid}/coverage.cobertura.xml" | |
#Cria relatorio HTML | |
reportgenerator "-reports:${path_result}" "-targetdir:coveragereport" -reporttypes:Html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment