Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAustin Schaffer <austin.schaffer@ryansg.com>2020-01-31 14:12:52 -0500
committerAustin Schaffer <austin.schaffer@ryansg.com>2020-01-31 15:57:33 -0500
commite81516ca8020e2ab96aee2859f0200d92108cc3e (patch)
tree3cd32c97969bc4db58ec1522cba22f9dc4788796 /configure.ac
parent3c5cffc34f6ddd4b6d632d3f7e1b163d97600961 (diff)
downloadliza-e81516ca8020e2ab96aee2859f0200d92108cc3e.tar.gz
liza-e81516ca8020e2ab96aee2859f0200d92108cc3e.tar.bz2
liza-e81516ca8020e2ab96aee2859f0200d92108cc3e.zip
[DEV-6721] Add optional code coverage
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 3a0fbc5..c5fc84d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -79,6 +79,16 @@ AC_ARG_WITH(
AC_SUBST([SET_SRCURI], [$set_srcuri])
+AC_ARG_ENABLE(
+ [code_coverage],
+ [AS_HELP_STRING([--enable-code-coverage],
+ [Generate a code coverage report when tests are run
+ (disabled by default)])],
+ AC_SUBST([CODE_COV], ["nyc --reporter=html --reporter=text --all --include=src \
+ --exclude=**/index.js --exclude=src/version.js"])
+ AC_SUBST([COV_ARGS], ["--require ts-node/register/transpile-only \
+ --require source-map-support/register"]))
+
AC_SUBST([AUTOGENERATED],
["THIS FILE IS AUTOGENERATED! DO NOT MODIFY! See *.in."])