-
Notifications
You must be signed in to change notification settings - Fork 675
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
Quarantine mode does not work anymore when configured via commandline option after uptdate to testcafe version 1.15.0 #6420
Comments
I also faced this issue, but if you use the full flag: |
It does not work for me with full flag either, btw full flag is --quarantine-mode, not --quarantineMode. I cannot use this configuration though as I do not want to switch on quarantine mode for all tests |
I tried to reproduce the behavior you described with v1.15.0 and a simple example but to no luck. This is my setup: package.json "scripts": {
"e2e": "testcafe -c 5 chrome test.js -q attemptLimit=3,successThreshold=1 --assertion-timeout 10000 -r spec,jenkins:report.xml -s path=artifacts/screenshots,takeOnFails=true,fullPage=false"
} test.js fixture `My fixture`;
let attempt = 0;
test('Test', async t => {
attempt++;
console.log(`Run attempt: ${attempt}`);
await t.expect(attempt).eql(3);
}); Output
This output indicates that the quarantine mode works correctly. Please send a complete example that we can run on our side and reproduce the behavior you encountered. This example should include the test code, test pages, and configuration files (if used). |
I'm seeing the same issue as the OP. CLI args don't appear to be overriding my
Test run stops after the first failure |
Should I create a different bug for the Test Runner? We are also seeing this issue of test stopping after first failure with the configuration in our Test Runner .run({ |
@wombatka Thank you for the clarification! I have reproduced this behavior. Any configuration file, even an empty one, seems to prevent quarantine mode options from being applied. We will look into this issue and update this thread once we have any news. @deeptigetfeedback no, the issue doesn't seem to depend on the way options are passed, neither will the fix. |
After update tescafe from 1.14.0 to 1.15.0 quarantine mode does not rerun test after failure
I used a new quarantine mode options: attemptLimit=3,successThreshold=1
I run tescafe via npm script :
testcafe -c 5 chrome src/test/tests -q attemptLimit=3,successThreshold=1 --assertion-timeout 10000 -r spec,jenkins:report.xml -s path=SCREENSHOTS_PATH/screenshots,takeOnFails=true,fullPage=false
In case of a test failure, the test is not rerun anymore. From what I understand from the docs, it should be run 3 times in case of a failure, and be marked as passed in case it passes at least once out od three attempts
The text was updated successfully, but these errors were encountered: