e2e: coverage reports

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2023-02-28 20:55:32 +01:00
parent 6210eb507a
commit 2201fc1194
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
3 changed files with 10 additions and 2 deletions

View File

@ -34,6 +34,12 @@ jobs:
run: yarn install
-
name: Test
run: yarn test:e2e
run: yarn test-coverage:e2e --coverageDirectory=./coverage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
name: Upload coverage
uses: codecov/codecov-action@v3
with:
file: ./coverage/clover.xml
flags: e2e

View File

@ -46,3 +46,4 @@ jobs:
uses: codecov/codecov-action@v3
with:
file: ./coverage/clover.xml
flags: unit

View File

@ -11,8 +11,9 @@
"prettier": "prettier --check \"./**/*.ts\"",
"prettier:fix": "prettier --write \"./**/*.ts\"",
"test": "jest",
"test:e2e": "jest -c jest.config.e2e.ts --runInBand --detectOpenHandles --forceExit",
"test-coverage": "jest --coverage",
"test:e2e": "jest -c jest.config.e2e.ts --runInBand --detectOpenHandles --forceExit"
"test-coverage:e2e": "jest --coverage -c jest.config.e2e.ts --runInBand --detectOpenHandles --forceExit"
},
"repository": {
"type": "git",