hopefully sets up jest test coverage in gitlab

This commit is contained in:
reesporte 2021-10-29 08:17:10 -05:00
parent ae69ad0d4e
commit 04642dad0f

View file

@ -66,14 +66,15 @@ generate coverage html:
run jest tests:
stage: test
image: sonarsource/sonar-scanner-cli:latest
image: sonarsource/sonar-scanner-cli:4.6
script:
- cd lattice
- npm install
- npm test -- --coverage --testResultsProcessor=jest-sonar-reporter
- sonar-scanner
artifacts:
paths:
- coverage/lcov.info
- lattice/coverage/lcov.info
upload to sonarcloud:
stage: test