diff --git a/contrib/teamcity/build-configurations.yml b/contrib/teamcity/build-configurations.yml --- a/contrib/teamcity/build-configurations.yml +++ b/contrib/teamcity/build-configurations.yml @@ -463,6 +463,8 @@ cashtab-tests: runOnDiffRegex: - web/cashtab/ + artifacts: + coverage.tar.gz: coverage.tar.gz env: # Any string will work, CI just needs to be defined CI: 'teamcity' @@ -481,6 +483,14 @@ } trap "move_junit_report" EXIT - npm run test -- \ + npm run test --coverage -- \ --reporters=default \ - --reporters=jest-junit + --reporters=jest-junit \ + --coverageReporters=text \ + --coverageReporters=lcov \ + --coverageReporters=teamcity + + pushd coverage/lcov-report + tar -czf ../coverage.tar.gz -- * + popd + mv coverage/coverage.tar.gz "${BUILD_DIR}/"