Add verification mode to screenshotter

Now Travis can run the screenshotter in verification mode.  The files in the
repository will be seen as the expected outcome, and if the actual result
differs from that, it might be attempted four more times before the test
case is actually deemed failed.  A timeout between page load and screenshot
should allow any possible font issues to settle down.
This commit is contained in:
Martin von Gagern
2015-11-06 12:43:34 +01:00
parent 5ecbcf6808
commit 9fb04dbb2e
2 changed files with 83 additions and 21 deletions

View File

@@ -9,5 +9,4 @@ before_script:
- docker pull selenium/standalone-chrome:2.46.0
script:
- npm test
- dockers/Screenshotter/screenshotter.sh
- git diff --name-only --exit-code
- dockers/Screenshotter/screenshotter.sh --verify