Visual Regression Testing with puppeteer and spectre
you need nodejs, git, docker and docker-compose installed
git clone https://github.com/wearefriday/spectre.git
docker-compose run --rm app bundle exec rake db:setup
docker-compose up
git clone https://github.com/weaddquality/javascript-visual-regression.git
npm install
npm test -g ./examples
for all tests
npm test -g ./examples/<testfile>
for a specific test
Want to set a specific Spectre URL? Set a environment variable named spectreUrl
with the url, before running the tests.
Using PowerShell: $env:spectreUrl = "<url to spectre instance>"; npm test -g ./examples
Using bash: spectreUrl=<url to spectre instance> npm test -g ./examples
you need jenkins installed with pipeline plugins
fork this repository
setup a deploykey on your github-repository
add credentials in jenkins with that deploykey
create a pipeline-job in jenkins
click thePipeline
-tab and on Definition
choose Pipeline script from SCM
add your repository and credentials with the deploykey
save and run your pipeline!
- puppeteer
- resemblejs (see branch)
- pixelmatch
- spectre
- spectre
- jenkins
- jenkinsfile
- travisci
- ansible
- docker
- eslint
- gulp