Skip to content

Commit 605c912

Browse files
committed
ci: generate lcov file in coverage tests
1 parent ec92e39 commit 605c912

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Usage: $(basename $0) [OPTIONS]
2424
2525
Options:
2626
-a <String> Filter architecture, allowed values: 'server' or 'client'
27+
-b Use a real browser for client tests (default is headless)
2728
-c Activate code-coverage reports
2829
-g <RegExp> Filter tests by a given RegExp (uses Mocha-grep)
2930
-h Show help
@@ -32,7 +33,7 @@ Options:
3233
"
3334

3435

35-
while getopts "a:bcg:hov" opt; do
36+
while getopts "a:cg:hov" opt; do
3637
case $opt in
3738
a)
3839
if [ "$OPTARG" = "client" ]
@@ -75,7 +76,7 @@ done
7576
# build paths:
7677

7778
PROJECT_PATH=$(pwd)
78-
T_PACKAGE_DIRS="../lib:../liboauth:./github"
79+
T_PACKAGE_DIRS="../lib:../libnpm:../liboauth:../:./github"
7980

8081
PORT=3077
8182

@@ -94,12 +95,13 @@ fi
9495
# create command:
9596

9697
METEOR_PACKAGE_DIRS=${T_PACKAGE_DIRS} \
97-
TEST_SERVER=1 \
98+
TEST_SERVER=${T_SERVER} \
9899
TEST_CLIENT=${T_CLIENT} \
99100
MOCHA_GREP=${T_FILTER} \
100101
BABEL_ENV=COVERAGE \
101102
COVERAGE=${T_COVERAGE} \
102103
COVERAGE_OUT_HTML=1 \
104+
COVERAGE_OUT_LCOVONLY=1 \
103105
COVERAGE_APP_FOLDER=$PWD/ \
104106
COVERAGE_VERBOSE_MODE=${T_VERBOSE} \
105107
meteor test \

0 commit comments

Comments
 (0)