This repository is the code sample to go with my visual regression and types of testing talks.
Video:
- Full Length (32m): https://vimeo.com/351646846
- Lightning (4.5m): https://vimeo.com/328997531
Slides: http://files.klingman.us/keep-looking-good.pdf
- Create an
es-lint
rule thatprepareBaseImage
must be false to prevent merges that would create false positives. - Fork the comparison software/maintain it?
- Import allure support
- Import puppeteer support
- Add tests
- You will need JDK installed for selenium to work (
brew cask install java
) - Run
npm install
- Run the site
npm run serve
- Run
npm run selenium
(Leave this running while running tests) - Run
npm run test:codecept
- When entirely done, kill the selenium process and site serve process
npm run test:unit
Note: I have intentionally not used the Vue-cypress plugin so this code is more portable to other frameworks and the configuration is more obvious.
- Run the site
npm run serve
- Run the tests
npm run test:cypress
npm run serve
npm run build
npm run lint