Skip to content

Commit

Permalink
Internal: nyc requires coverage file to be placed in a particular dir…
Browse files Browse the repository at this point in the history
…ectory.
  • Loading branch information
mlewand committed May 1, 2020
1 parent e381da4 commit 3c7c28d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/continuous-integration-run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ packages=$(ls packages -1 | sed -e 's#^ckeditor5\?-\(.\+\)$#\1#')

errorOccured=0

rm -r -f .nyc_output
mkdir .nyc_output

failedTestsPackages=""
failedCoveragePackages=""

Expand Down Expand Up @@ -68,6 +71,8 @@ for package in $packages; do
errorOccured=1
fi

cp coverage/*/coverage-final.json .nyc_output

npx nyc check-coverage --branches 100 --functions 100 --lines 100 --statements 100

if [ "$?" -ne "0" ]; then
Expand Down

0 comments on commit 3c7c28d

Please sign in to comment.