-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: 🧑💻 update code coverage for e2e tests
- Loading branch information
Showing
4 changed files
with
2,845 additions
and
11,765 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,7 @@ jobs: | |
- name: Produce the coverage report | ||
uses: insightsengineering/coverage-action@v2 | ||
with: | ||
coverage-summary-title: Backend Coverage Summary | ||
path: ./backend/coverage.xml | ||
publish: true | ||
threshold: 80 | ||
|
@@ -77,8 +78,6 @@ jobs: | |
pull-requests: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Start stack using docker compose | ||
run: IMAGE_TAG=${{ needs.build-backend.outputs.image_tag }} docker compose -f docker-compose.yml -f docker-compose.ci.yml up -d | ||
- name: Cypress run | ||
|
@@ -88,14 +87,26 @@ jobs: | |
build: npm run build | ||
start: npm run start | ||
command: npm run test:e2e-ci | ||
- name: Install pycobertura | ||
run: pip install pycobertura | ||
- name: Generate Cobertura Report | ||
run: | | ||
cd frontend | ||
npx nyc report --reporter=cobertura | ||
- name: Validate Coverage with pycobertura | ||
run: | | ||
cd frontend | ||
pycobertura show coverage/cobertura-coverage.xml | ||
- name: Produce Coverage Report | ||
uses: insightsengineering/coverage-action@v2 | ||
with: | ||
coverage-summary-title: Frontend Coverage Summary | ||
path: ./frontend/coverage/cobertura-coverage.xml | ||
publish: true | ||
threshold: 75 | ||
- name: Send artifacts | ||
uses: actions/upload-artifact@v3 | ||
if: ${{ failure() }} | ||
with: | ||
name: cypress-screenshots | ||
path: | | ||
./frontend/cypress/screenshots/ | ||
- name: Report NYC coverage | ||
uses: sidx1024/[email protected] | ||
with: | ||
coverage_file: "./frontend/coverage/coverage-summary.json" | ||
path: ./frontend/cypress/screenshots/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.