Allows re-running of protractor tests based on xunit result files.
Credit to Yahoo Protractor-retry for inspiration. I borrowed several design choices from this repo.
Will re-run tests and modify xunit result files with successes on-the-fly.
var retry = new (require('protractor-xunit-retry'))('./path-to-your-xunit-files');
In your protractor-config file
afterLaunch: () => {
retry.afterLaunch(maxRetryAttempts);
}