From e70a719c638509087539b3ba0dba0b61d65519ca Mon Sep 17 00:00:00 2001 From: Bond_009 Date: Sat, 10 Apr 2021 16:04:07 +0200 Subject: First --- .gitignore | 1 + content/css/main.css | 21 +++++++++++++++++++++ content/index.html | 37 +++++++++++++++++++++++++++++++++++++ scripts/jellyfin-covreport.sh | 9 +++++++++ 4 files changed, 68 insertions(+) create mode 100644 .gitignore create mode 100755 content/css/main.css create mode 100755 content/index.html create mode 100755 scripts/jellyfin-covreport.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5d8dc4b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +content/jellyfin diff --git a/content/css/main.css b/content/css/main.css new file mode 100755 index 0000000..5236e3f --- /dev/null +++ b/content/css/main.css @@ -0,0 +1,21 @@ +html { + font-family: Hack, monospace; + color: #eeeeee; + background-color:#1e1e1e; + line-height: 1.6; +} +main { + max-width: 70ch; + padding: 2ch; + margin: auto; +} +h1::before { + content: '# '; +} +h2::before { + content: '## '; +} +a { + color: #569cd6; + text-decoration: none; +} diff --git a/content/index.html b/content/index.html new file mode 100755 index 0000000..bb43d3f --- /dev/null +++ b/content/index.html @@ -0,0 +1,37 @@ + + + + + Bond_009 Coverage Lab + + + + + + + + + + + + + +
+
+

Bond_009 Coverage Lab

+ +
+ +
+
+
+ + + 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" -- cgit v1.2.3