diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-04-10 16:04:07 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-04-10 16:04:07 +0200 |
| commit | e70a719c638509087539b3ba0dba0b61d65519ca (patch) | |
| tree | 692baebeac1191d189ac5da93b9ded042bc88b85 /scripts/jellyfin-covreport.sh | |
First
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" |
