Skip to content

munderseth/my.cypress

Repository files navigation

My Cypress

Sandbox for working with Cypress.

Usage

To run this example:

Using the Cypress Launchpad:

npx cypress open

Automation:

npm run test

Script to run 3-my-tests:

./run-my.sh [--spec /to/path]

The script will remove previous results first.

Ternimal:

npx cypress run [--spec /to/path] [--headed]

Testspace

Publish:

testspace cypress/results/*.xml{cypress/e2e}

Configuration via console:

testspace config url https:[email protected]
testspace config project munderseth:my.cypress
testspace config space main

Setup

The following steps required to setup frome scratch.

.gitignore

node_modules
cypress/screenshots
cypress/videos
cypress/results
logs

Packages

Create initial package.json file.

npm init -y

Using https://github.com/cypress-io/cypress

npm install cypress --save-dev

Terminal output:

npm i --save-dev cypress-terminal-report

Configuration

The cpyress.config.js specifics:

  • Configure built-in moacha reporter to use the [hash] to generate unique report for each file executed.
  • The cypress-terminal-report requires settings
  • The /cypress/support/e2e.js requires updates

References