Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

noptor: restart browser #316

Open
wants to merge 4 commits into
base: noptor
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docs/config/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,23 @@ Execute the visual test:
$ uiveri5 --browsers=browser:*:android --seleniumAddress=http://127.0.0.1:4723/wd/hub --baseUrl=http://10.0.2.2:8080
```

## Run test files in parallel
Use the following capabilities to run every spec file in a separate browser parallelly
```javascript
browsers: [{
browserName: "chrome",
capabilities: {
shardTestFiles: true
}
}]
```

## Restart browser between suites
Disabled by default.
Note the current limitation that each spec file should contain exactly one suite.
```javascript
exports.config = {
restartBrowserBetweenSuites: true
}
```
Protractor's `restartBrowserBetweenTests` is also available and false by default.
2 changes: 1 addition & 1 deletion e2e/Runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports = class Runner {
var cmdString = [
'node',
'../bin/uiveri5',
'-v',
'--v',
'--browsers=chromeHeadless',
'--config.specResolver="./resolver/localSpecResolver"',
'--config.specs=' + opts.specs,
Expand Down
Loading