Sandbox for working with Cypress.
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]
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
The following steps required to setup frome scratch.
.gitignore
node_modules
cypress/screenshots
cypress/videos
cypress/results
logs
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
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
- https://github.com/michaelleeallen/mocha-junit-reporter
- https://github.com/archfz/cypress-terminal-report - Terminal output plugin
- Issue tracking concerning terminal output
- cypress-io/cypress#8823
- cypress-io/cypress#448 - issue tracking
- flotwig/cypress-log-to-output#22 - outdated