Skip to content

Commit

Permalink
ci: generate lcov file in coverage tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jankapunkt committed Mar 14, 2024
1 parent ec92e39 commit 605c912
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Usage: $(basename $0) [OPTIONS]
Options:
-a <String> Filter architecture, allowed values: 'server' or 'client'
-b Use a real browser for client tests (default is headless)
-c Activate code-coverage reports
-g <RegExp> Filter tests by a given RegExp (uses Mocha-grep)
-h Show help
Expand All @@ -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" ]
Expand Down Expand Up @@ -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

Expand All @@ -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 \
Expand Down

0 comments on commit 605c912

Please sign in to comment.