Skip to content

Commit

Permalink
Merge pull request #188 from javierbrea/feat-186-bail-option
Browse files Browse the repository at this point in the history
Add bail option
  • Loading branch information
javierbrea committed Feb 23, 2022
2 parents 96bfdba + ee774b3 commit 35d4c9f
Show file tree
Hide file tree
Showing 45 changed files with 43,801 additions and 3,779 deletions.
5 changes: 1 addition & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@ This document may also be subject to pull-requests or changes by contributors wh

### Git Commit Messages

* Use the present tense ("Add feature" not "Added feature")
* Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
* Limit the first line to 72 characters or less
* Reference issues and pull requests liberally after the first line
* Use [semmantic commit](https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716)

### JavaScript Styleguide

Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
# NodeJS v17 still not supported in tests due to incompatibility with react-scripts
node: ["14.16.1", "15.14.0", "16.13.0"]
node: ["14.16.1", "16.13.0", "17.5.0"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Removed
### BREAKING CHANGES

## [unreleased]

### Added
- feat(#186): Add CYPRESS_FAIL_FAST_BAIL option

### Changed
- chore(deps): Update package-lock files to NPM v8
- test(e2e): Increase tests stability. Fix flaky test in parallel specs
- test(e2e): Turn tsc check into an assertion
- refactor: Reduce cognitive complexity
- chore(deps): Update devDependencies

## [3.3.0] - 2021-11-13

### Added
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ From now, if one test fail after its last retry, the rest of tests will be skipp
* Use `parallel` to [provide your own callbacks](#configuration-for-parallel-runs) allowing to notify from one run to the others when remaining tests should be skipped.
* __`FAIL_FAST_ENABLED`__: `boolean = true` Allows disabling the "fail-fast" feature globally, but it could be still enabled for specific tests or describes using [configuration by test](#configuration-by-test).
* __`FAIL_FAST_PLUGIN`__: `boolean = true` If `false`, it disables the "fail-fast" feature totally, ignoring even plugin [configurations by test](#configuration-by-test).
* __`FAIL_FAST_BAIL`__: `Number = 1` Enable the skip mode immediately upon n number of failing test suite. Defaults to 1.

#### Examples

Expand All @@ -77,7 +78,8 @@ or set the "env" key in the `cypress.json` configuration file:
"env":
{
"FAIL_FAST_STRATEGY": "run",
"FAIL_FAST_ENABLED": true
"FAIL_FAST_ENABLED": true,
"FAIL_FAST_BAIL": 2,
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
collectCoverage: true,

// An array of glob patterns indicating a set of files for which coverage information should be collected
collectCoverageFrom: ["src/*.js"],
collectCoverageFrom: ["src/**/*.js"],

// The directory where Jest should output its coverage files
coverageDirectory: "coverage",
Expand Down
Loading

0 comments on commit 35d4c9f

Please sign in to comment.