This folder contains the source code for the Spock Framework website. It is built using Vite and uses Playwright for visual regression testing.
- Modern frontend development with Vite and Tailwind CSS
- Automated visual regression tests using Playwright
- Easy snapshot updates via Docker
To start the development server:
npm ci
npm run devVisual regression tests are located in the tests/ directory and use Playwright to compare screenshots.
The reference screenshots are taken on linux, so local testing requires the use of Docker.
To run the tests locally:
./visual-regression-test.shThis requires Docker to be installed and running on your machine. It will build a local docker image and run the tests inside a container.
To update visual snapshots:
./visual-regression-test.sh --update-snapshots