0.0.9 • Published 6 years ago
protractor-rerun v0.0.9
Rerun failed tests
default maxSessionCount is 5, for open 5 processes in parralel mode default specRerunCount is 3, failed tests will have 3 attempts default configPath is ./protractor.conf.js default specsDir is ./spec default debug is false
Usage from command line
$ ./node_modules/.bin/protractor-rerun --sessionsCount 8 --count 3 --configPath ./path/to/your/protractor.conf.js --specsDir ./path/to/specDir --debug
Usage from package.json
"test:rerun": "protractor-rerun --sessionsCount 8 --count 3 --configPath ./path/to/your/protractor.conf.js --specsDir ./path/to/specDir --debug",
Usage from code
const protractorRerun = require('protractor-rerun')
const formCommand = (browser, filePath) => {
return `BROWSER=${browser} ./node_modules/.bin/protractor ./protractor.conf.js --specs ${filePath}`
}
protractorRerun.getSpecCommands(specsDirBaseDocuments, (file) => formCommand('chrome', file)),
const rerunner = protractorRerun.getReruner({
everyCycleCallback: async () => true,
stackAnalize: (stack) => !stack.includes('ASSERTION ERROR'),
pollTime:1000,
maxSessionCount: 12,
specRerunCount: 3,
grepWord: 'somegrep'
})
rerunner(protractorRerun.getSpecCommands('./specs', (file) => formCommand('chrome', file)))
0.0.9
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago
0.0.1
6 years ago
0.0.7-beta
6 years ago
0.0.6-beta
6 years ago
0.0.5-beta
6 years ago
0.0.4-beta
6 years ago
0.0.3-beta
6 years ago
0.0.2-beta
6 years ago
0.0.1-beta
6 years ago