https://github.com/t3easy/backstopjs-demo
https://github.com/t3easy/backstopjs-demo
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/t3easy/backstopjs-demo
- Owner: t3easy
- Created: 2020-03-10T20:03:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-15T10:54:02.000Z (about 4 years ago)
- Last Synced: 2025-01-21T00:34:08.842Z (over 1 year ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Visual regression testing mit BackstopJS
## Schritte
1. Alias für Docker
```
alias backstop='docker run --rm -v $(pwd):/src backstopjs/backstopjs:6.1.0 "$@"'
```
1. Konfiguration erzeugen
```
backstop init
```
1. Den Ordner `engine_scripts` aus `backstop_data` verschieben und `backstop_data` von der Versionierung ausschließen.
Je nach Workflow kann es auch sinnvoll sein, den Ordner `backstop_data/bitmaps_reference` einzuchecken.
1. Für mehr Möglichkeiten nutzen wir JavaScript statt JSON zur Konfiguration.
BackstopJS muss nun mit dem Parameter `--config backstop.js` ausgeführt werden.
## Links
https://github.com/garris/BackstopJS/
https://hub.docker.com/r/backstopjs/backstopjs