mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-14 15:28:40 +00:00
Add regenerate option to the screenshotter (#1220)
* Add regenerate option to the screenshotter Save new screenshot when match fails * Ignore Chrome debug log file * CircleCI: Generate only failed screenshots * CircleCI Test * Revert "CircleCI Test" This reverts commit 5d3afb2602f32470eeba7767748faba177ba933e. * Rename `regenerate` to `new` * Add ` /test/screenshotter/new/` to .gitignore
This commit is contained in:
@@ -20,18 +20,12 @@ defaults: &defaults
|
||||
- node_modules
|
||||
|
||||
- run:
|
||||
name: Verify screenshots and generate diff
|
||||
command: node dockers/Screenshotter/screenshotter.js --seleniumIP localhost -b $CIRCLE_JOB --verify --diff
|
||||
- run:
|
||||
name: Generate new screenshots
|
||||
when: always
|
||||
command: |
|
||||
rm -rf test/screenshotter/images/*
|
||||
node dockers/Screenshotter/screenshotter.js --seleniumIP localhost -b $CIRCLE_JOB
|
||||
name: Verify screenshots and generate diffs and new screenshots
|
||||
command: node dockers/Screenshotter/screenshotter.js --seleniumIP localhost -b $CIRCLE_JOB --verify --diff --new
|
||||
|
||||
- store_artifacts:
|
||||
path: test/screenshotter/images
|
||||
destination: image
|
||||
path: test/screenshotter/new
|
||||
destination: new
|
||||
- store_artifacts:
|
||||
path: test/screenshotter/diff
|
||||
destination: diff
|
||||
|
Reference in New Issue
Block a user