From 605c91215546f037d901765caf0ad702ab4c4a8b Mon Sep 17 00:00:00 2001 From: jankapunkt Date: Thu, 14 Mar 2024 11:52:06 +0100 Subject: [PATCH] ci: generate lcov file in coverage tests --- test.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test.sh b/test.sh index 3f1309c..f74ef08 100755 --- a/test.sh +++ b/test.sh @@ -24,6 +24,7 @@ Usage: $(basename $0) [OPTIONS] Options: -a Filter architecture, allowed values: 'server' or 'client' + -b Use a real browser for client tests (default is headless) -c Activate code-coverage reports -g Filter tests by a given RegExp (uses Mocha-grep) -h Show help @@ -32,7 +33,7 @@ Options: " -while getopts "a:bcg:hov" opt; do +while getopts "a:cg:hov" opt; do case $opt in a) if [ "$OPTARG" = "client" ] @@ -75,7 +76,7 @@ done # build paths: PROJECT_PATH=$(pwd) -T_PACKAGE_DIRS="../lib:../liboauth:./github" +T_PACKAGE_DIRS="../lib:../libnpm:../liboauth:../:./github" PORT=3077 @@ -94,12 +95,13 @@ fi # create command: METEOR_PACKAGE_DIRS=${T_PACKAGE_DIRS} \ - TEST_SERVER=1 \ + TEST_SERVER=${T_SERVER} \ TEST_CLIENT=${T_CLIENT} \ MOCHA_GREP=${T_FILTER} \ BABEL_ENV=COVERAGE \ COVERAGE=${T_COVERAGE} \ COVERAGE_OUT_HTML=1 \ + COVERAGE_OUT_LCOVONLY=1 \ COVERAGE_APP_FOLDER=$PWD/ \ COVERAGE_VERBOSE_MODE=${T_VERBOSE} \ meteor test \