This repository has been archived by the owner on Mar 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 760
CSS Regression Testing
Matt Hippely edited this page Sep 3, 2019
·
2 revisions
CSS regression is run with a suite of gemini tests. In order to make testing easy in a variety of environments we added support for running our suite inside a Docker container.
Running tests locally depends on having Docker installed and running.
We also need gemini
and the html-reporter
installed on the local machine.
- npm install -g gemini
- npm install -g html-reporter
There are two commands built into our npm scripts:
- Run tests
-
npm run test:visual:light set1
will run all the test suites in set1 for the light theme -
npm run test:visual:light set1/buttons.js
will run the buttons.js suite of tests for the light theme
-
- Update reference images
-
npm run visual:fix:light set1
will rungemini update
on all the test suites in set1 for the light theme -
npm run visual:fix:light set1/buttons.js
will rungemini update
on the buttons.js test suite for the light theme
-
Note: we have currently broken up the tests into two sets, set1 and set2.