Skip to content

Instantly share code, notes, and snippets.

@CristianoRC
Created February 16, 2021 12:53
Show Gist options
  • Save CristianoRC/616d43221dfa0b2688c2964c271c5408 to your computer and use it in GitHub Desktop.
Save CristianoRC/616d43221dfa0b2688c2964c271c5408 to your computer and use it in GitHub Desktop.
Script para automatizar saida do report generator .NET Core
#!/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