-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
- Operating system and version = MacOS 10.14.3
- Node.js version = 8.9.0
- Protractor version = 5.1.2
- Protractor flake version = 3.3.0
Flake file:
var protractorFlake = require('protractor-flake');
var suites = process.argv.splice(2);
protractorFlake({
protractorPath: './node_modules/.bin/protractor',
maxAttempts: 3,
protractorArgs: ['./config.js', ...suites]
}, function(status) {
process.exit(status);
});
Config file:
var failFast = require('protractor-fail-fast');
var AllureReporter = require('jasmine-allure-reporter');
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
suites: {
suite1: [
'../suite1/spec1.js',
'../suite1/spec2.js',
'../suite1/spec3.js'
],
suite2: [
'../suite2/spec4.js' ]
},
multiCapabilities: [
{
directConnect: true,
browserName: chrome
}
],
maxSessions: 1,
onPrepare: function() {
jasmine.getEnv().addReporter(failFast.init());
browser.manage().timeouts().implicitlyWait(40000);
jasmine.getEnv().addReporter(new AllureReporter({
allureReport: {
resultsDir: '../allure-results'
}
}));
}
};
Command:
node config/run-protractor.js
Suppose I've started running all the tests
spec1.js
passed andspec2.js
fails randomly- It retries
spec2.js
and it's passed as a result of retry but then it exits - It doesn't run the remaining test i.e.
spec3.js
andspec4.js
Is this the correct behavior or am I missing something here? I want to continue running the remaining tests.
Metadata
Metadata
Assignees
Labels
No labels