aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/code-coverage.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/code-coverage.sh b/scripts/code-coverage.sh
new file mode 100755
index 000000000..37038bd2a
--- /dev/null
+++ b/scripts/code-coverage.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+set -e
+
+cd "$(dirname "${0}")/.."
+mkdir -p coverage_report
+lcov --directory . --capture --output-file lcov.info
+genhtml -o coverage_report lcov.info