mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-13 06:58:40 +00:00
Collect code coverage in screenshotter tests (#1644)
* Collect code coverage in screenshotter tests * Using instanbul, no additional dependencies required as they are part of jest * Collect in CircleCI builds and upload to Codecov * Remove clover report
This commit is contained in:
@@ -31,6 +31,11 @@ yarn_install: &yarn_install
|
||||
name: Install dependencies
|
||||
command: yarn
|
||||
|
||||
codecov: &codecov
|
||||
run:
|
||||
name: Upload code coverage reports to Codecov
|
||||
command: ./node_modules/.bin/codecov
|
||||
|
||||
screenshotter: &screenshotter
|
||||
steps:
|
||||
- checkout
|
||||
@@ -47,7 +52,8 @@ screenshotter: &screenshotter
|
||||
|
||||
- run:
|
||||
name: Verify screenshots and generate diffs and new screenshots
|
||||
command: node dockers/screenshotter/screenshotter.js --selenium-ip localhost -b $CIRCLE_JOB --verify --diff --new
|
||||
command: node dockers/screenshotter/screenshotter.js --selenium-ip localhost -b $CIRCLE_JOB --verify --diff --new --coverage
|
||||
- *codecov
|
||||
|
||||
- store_artifacts:
|
||||
path: test/screenshotter/new
|
||||
@@ -98,9 +104,7 @@ jobs:
|
||||
- run:
|
||||
name: Run tests
|
||||
command: yarn test --coverage
|
||||
- run:
|
||||
name: Upload code coverage reports to Codecov
|
||||
command: ./node_modules/.bin/codecov
|
||||
- *codecov
|
||||
|
||||
- run:
|
||||
name: Build KaTeX
|
||||
|
Reference in New Issue
Block a user