cypress-cucumber-attach-screenshots-to-failed-steps
v1.0.0
Published
This is a `cypress plugin` that `automatically attaches screenshots to failed cucumber steps` so that they will appear on reports.
Downloads
58,753
Readme
cypress-cucumber-attach-screenshots-to-failed-steps
This is a cypress plugin
that automatically attaches screenshots to failed cucumber steps
so that they will appear on reports.
Prerequisites
Before you begin, ensure you have met the following requirements:
- You are using cypress
- You are using cypress-cucumber-preprocessor
- You are using multiple-cucumber-html-reporter
Install
To install, follow these steps:
npm install --save-dev cypress-cucumber-attach-screenshots-to-failed-steps
Using
To use, follow these steps:
Add the following to your cypress/support/index.js
file:
import "cypress-cucumber-attach-screenshots-to-failed-steps";
Contributing
To contribute, follow these steps:
- Fork this repository.
- Create a branch:
git checkout -b <branch_name>
. - Make your changes and commit them:
git commit -m '<commit_message>'
- Push to the original branch:
git push origin <project_name>/<location>
- Create the pull request.
Alternatively see the GitHub documentation on creating a pull request.
License
This is open source software licensed as MIT.