Skip to content

imrohitsinghal/cypress-visual-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Help + Running tests locally

The steps below will take you all the way through Cypress.

If you get stuck, here is more help:

1. Install Cypress

Follow these instructions to install Cypress.

2. Run tests locally using Cypress App

If you’re not using Node or npm in your project or you want to try Cypress out quickly, you can always download Cypress directly from CDN. Follow these instructions to install Cypress.

If you want to experiment with running this project locally, you'll need to fork it first.

After forking this project in Github, follow these commands to run tests locally:

## Clone the repo locally
git clone https://github.com/<your-username>/cypress-visual-tests.git

##Install image snapshot package using npm
npm install --save-dev cypress-image-snapshot

##  Launch cypress desktop app

## Open local repo manually from cypress app or drag-drop it in cypress app
Click "visual-test.spec.js"

3. Experiment with tests using npm and terminal

If you want to experiment with running this project locally with npm, you'll need to fork it first.

After forking this project in Github, follow these commands to run tests locally using npm:

## clone this repo to a local directory
git clone https://github.com/<your-username>/cypress-visual-tests.git

## cd into the cloned repo
cd cypress-visual-tests

## install the node_modules
npm install

## start the tests
cypress run

4. Add the project to Cypress

Follow these instructions to add the project to Cypress.

5. Run in Continuous Integration

Follow these instructions to run the tests in CI.

About

POC for Cypress visual e2e tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published