Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 27, 2023. It is now read-only.
/clarityPublic archive

CSS Regression Testing

Matt Hippely edited this pageSep 3, 2019 ·2 revisions

About

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 havingDocker installed and running.

We also needgemini and thehtml-reporter installed on the local machine.

  • npm install -g gemini
  • npm install -g html-reporter

There are two commands built into our npm scripts:

  1. Run tests
    1. npm run test:visual:light set1 will run all the test suites in set1 for the light theme
    2. npm run test:visual:light set1/buttons.js will run the buttons.js suite of tests for the light theme
  2. Update reference images
    1. npm run visual:fix:light set1 will rungemini update on all the test suites in set1 for the light theme
    2. 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.

References

  1. What is Docker?
  2. What is Gemini?
  3. What is Selenium?
Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp