forked from qualityshepherd/protractor-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake
More file actions
executable file
·24 lines (21 loc) · 666 Bytes
/
Copy pathflake
File metadata and controls
executable file
·24 lines (21 loc) · 666 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env node
/**
* flake is a node script that uses protractor-flake to re-run failed tests. Note
* that it reruns tests at the _file_ level, so if one test fails, it will rerun all
* the tests in that file. Still... awesome.
*
* usage:
* `./flake conf.js [other protractor args]`
*/
const protractorFlake = require('protractor-flake');
// skip first two passed args (node and self)
let protractorArgs = process.argv.splice(2);
protractorFlake({
protractorPath: 'node_modules/.bin/protractor',
maxAttempts: 2,
parser: 'multi',
nodeBin: 'node',
protractorArgs: protractorArgs
}, (status, output) => {
process.exit(status);
});