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:
ylemkimon
2018-05-21 21:06:50 +09:00
committed by Erik Demaine
parent 34cf5c2f81
commit 74e84e72d2
3 changed files with 35 additions and 18 deletions

View File

@@ -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