-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When we using Protractor-retry then it Re-run whole test case not a failed test cases #62
Comments
Do u have logs / traces of your issue? |
It is not showing any error....If any of the spec failed then It's runing all specs 2 time.I want to rerun only failed specs . |
please try to run your command line with DEBUG=* to get more logs on your side. |
If, as suggested on Readme, use Then later on function onCleanUp(results,files) {
if (results) {
writeToFile(files);
}
} Which will provoke to run all the specs again It is related to this PR So, what is missing is: |
@dreuxl I've debugged until the method |
I have these tests. Each folder has 1 file in it. I intentionally make the test fail under paymentPage. We have over 50 tests but just to see the issue I used the above example.
|
@dreuxl : Let me eleborate issue,
In this config if there is any single test failure in spec1.e2e-spec.ts. then all test cases of spec1.e2e-spec.ts & spec2.e2e-spec.ts are executed in rerun on next retry which is the issue. |
Hi guys, any luck on solving this one or workaround? I am having the same issue. No matter how I twist the onPrepare, onCleanup and afterLaunch in config file, I always have the whole list of test cases written in a the file that will be re-ran by protractor-retry library. as following: |
Seems to be a known issue as described in README, https://github.com/yahoo/protractor-retry#known-caveat |
Will this issue get resolved? |
@ashishgoel88 You could give it a try on https://github.com/yuezk/protractor-jasmine-retry if you are using Jasmine as the test framework. As I remember, it resolved this issue. |
Can someone help me on this.....
My conf file :
var retry = require('../lib/retry');
exports.config = {
framework: 'jasmine2',
specs: ['./jasmine/*.spec.js'],
jasmineNodeOpts: {
// If true, print colors to the terminal.
showColors: true,
// Default time to wait in ms before a test fails.
defaultTimeoutInterval: 30000
},
capabilities: {
shardTestFiles: true,
maxInstances: 4,
browserName: 'chrome',
},
onCleanUp: function (results) {
retry.onCleanUp(results);
},
onPrepare: function () {
retry.onPrepare();
require('jasmine-expect');
browser.ignoreSynchronization = true;
},
afterLaunch: function() {
return retry.afterLaunch(2); // number of retries ( default is 2 )
}
};
The text was updated successfully, but these errors were encountered: