Cypress Image Diff Documentation
  • Migrate from v1 to v2
  • Getting started
    • Cypress integration
      • Typescript
      • Javascript
      • Browserstack
      • Cypress < v10
    • cy.compareSnapshot command
    • Custom config file
      • ROOT_DIR
      • FAILURE_THRESHOLD
      • RETRY_OPTIONS
      • FAIL_ON_MISSING_BASELINE
      • COMPARISON_OPTIONS
      • JSON_REPORT
      • CYPRESS_SCREENSHOT_OPTIONS
      • REPORT_DIR
      • SCREENSHOTS_DIR
      • NAME_TEMPLATE
    • Reporting
      • JSON report
      • Cypress Image Diff HTML Report
      • Legacy HTML Report
    • Client options
    • Running tests
    • Contributing
    • Publishing
Powered by GitBook
On this page
  • Tests
  • Linting
  • Unit tests
  • E2E tests
  • Please notice
  1. Getting started

Running tests

Run lint, unit and e2e tests on the repository

Tests

Before you run any of the test command below ensure to build the image:

make build

Linting

make lint-test

Unit tests

make unit-test

E2E tests

make e2e-test

Please notice

It's important that you run the tests in the container as it will have a single resolution setup for everyone.

If the tests are executed locally, depending on your screen resolution the results can differ.

PreviousClient optionsNextContributing

Last updated 1 year ago