diff options
Diffstat (limited to 'scripts/jellyfin-covreport.sh')
| -rwxr-xr-x | scripts/jellyfin-covreport.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/jellyfin-covreport.sh b/scripts/jellyfin-covreport.sh new file mode 100755 index 0000000..351772d --- /dev/null +++ b/scripts/jellyfin-covreport.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +cd "$1" + +find . -type d -name 'TestResults' -exec rm -r {} + +dotnet test --configuration Release --collect:'XPlat Code Coverage' --settings tests/coverletArgs.runsettings --verbosity minimal +reportgenerator "-title:Jellyfin" "-reporttypes:Html;Badges;JsonSummary" "-reports:tests/**/coverage.cobertura.xml" "-targetdir:$2" "-historydir:$3" "-verbosity:Warning" |
