Skip to content

Commit

Permalink
Add option to disable failFast
Browse files Browse the repository at this point in the history
  • Loading branch information
Radim Hrazdil committed Oct 21, 2019
1 parent d0e0cf9 commit b6996e6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,18 +245,24 @@ $ ./test-gui.sh <suite>

#### Hacking Integration Tests

To see what the tests are actually doing, it is posible to run in none `headless` mode by setting the `NO_HEADLESS` enviorment variable:
To see what the tests are actually doing, it is posible to run in none `headless` mode by setting the `NO_HEADLESS` environment variable:

```
$ NO_HEADLESS=true ./test-gui.sh <suite>
```

To use a specific binary version of chrome, it is posible to set the `CHROME_BINARY_PATH` enviorment variable:
To use a specific binary version of chrome, it is posible to set the `CHROME_BINARY_PATH` environment variable:

```
$ CHROME_BINARY_PATH="/usr/bin/chromium-browser" ./test-gui.sh <suite>
```

To avoid skipping remaining portion of tests upon encountering the first failure, `NO_FAILFAST` environment variable can be used:

```
$ NO_FAILFAST=true ./test-gui.sh <suite>
```

##### Debugging Integration Tests

1. `cd frontend; yarn run build`
Expand Down
2 changes: 1 addition & 1 deletion frontend/integration-tests/protractor.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const config: Config = {
defaultTimeoutInterval: 40000,
},
logLevel: tap ? 'ERROR' : 'INFO',
plugins: [failFast.init()],
plugins: process.env.NO_FAILFAST ? [] : [failFast.init()],
capabilities: {
browserName: 'chrome',
acceptInsecureCerts: true,
Expand Down

0 comments on commit b6996e6

Please sign in to comment.