summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2021-04-10 16:04:07 +0200
committerBond_009 <bond.009@outlook.com>2021-04-10 16:04:07 +0200
commite70a719c638509087539b3ba0dba0b61d65519ca (patch)
tree692baebeac1191d189ac5da93b9ded042bc88b85 /scripts
First
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/jellyfin-covreport.sh9
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"