Skip to content

Commit 02b5d6a

Browse files
committed
(#5) Split coverage data into separate folders and added step to merge results
1 parent 1adb440 commit 02b5d6a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.build/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ cd $targetDir
2222
echo "Installing node version $nodeVersion"
2323
nvm install $nodeVersion
2424
echo "npm run coverage"
25-
E2E_TEST=1 npm run coverage
25+
E2E_TEST=1 npm run coverage -- --coverageDirectory=coverage/e2e

.build/run_linux.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ npm run compile
99
echo "init e2e test subpackage"
1010
npm --prefix e2e/tests ci
1111
echo "npm run coverage"
12-
npm run coverage
12+
npm run coverage -- --coverageDirectory=coverage/unit
1313
docker exec nut-ci bash -c "bash $PWD/.build/build.sh ${PWD} ${TRAVIS_NODE_VERSION}"
14+
npm run coverage:collect

0 commit comments

Comments
 (0)