aboutsummaryrefslogtreecommitdiff
path: root/scripts/coverage
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-05-03 10:03:25 +0300
committerTulir Asokan <tulir@maunium.net>2018-05-03 10:03:25 +0300
commit93cbdc0ca88d46454b96043d8baf4b231e91474a (patch)
tree0db78cb9e3c2e3ec85c01f61261fe7d72c83453b /scripts/coverage
parentb796c2e2092f3ed41e607382a798d27e3e11b914 (diff)
Add debian packaging and some build scripts
Diffstat (limited to 'scripts/coverage')
-rwxr-xr-xscripts/coverage8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/coverage b/scripts/coverage
new file mode 100755
index 0000000..c52d4a6
--- /dev/null
+++ b/scripts/coverage
@@ -0,0 +1,8 @@
+#!/bin/bash
+mkdir -p target/
+go test ./... -coverprofile=target/coverage.out
+if [ ! -z $1 ]; then
+ go tool cover -html=coverage.out -o $1
+else
+ go tool cover -html=coverage.out
+fi