Allow only one
describe
andit
calls per file so is easier to parallelize their use.
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-cypress-parallelize
:
$ npm install eslint-plugin-cypress-parallelize --save-dev
This plugin and it's rule were designed to be included in a file at cypress/integration/.eslintrc
This file should look like this:
{
"plugins": [
"cypress-parallelize"
],
"rules": {
"cypress-parallelize/allow-only-one-test-per-file": 2
}
}
- allow-only-one-test-per-file: Currently its only rule that alert when you use multiple
describe
s orit
s on a test file