Skip to content

protractor-flake doesn't run the remaining tests after retrying the failed test #106

@fubha

Description

@fubha
  • 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 and spec2.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 and spec4.js

Is this the correct behavior or am I missing something here? I want to continue running the remaining tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions