Open aartikov opened 4 years ago
What if the test would not fail for 1000 executions?
Any reason why we can't use strict mode with a specific number of executions like 100? This way you have at list a limitation of the number of executions and have the control over the precision of calculated probability:
@Malinskiy I want to use marathon to catch a rare crash on CI emulator. I need logcat logs for this crash. I can run a test 100 times and a crash will arise with a great chance. But the logs will be overwritten because of this issue #322. This is my main problem. The other problem - 100 is not optimal value. Maybe 50 times is enough to not waste resources of CI server. I don't know beforehand.
this seems to be related to #360
a variation on strictMode
that bails out immediately when the first failure is encountered would be very useful
note: use case here is that I want to rerun a test up to X times to investigate if there is any flakiness. If encountered, I want to be able to review the marathon report for that failure to debug the issue.
When the last test succeeds, the marathon report looks successful - so I'm unable to debug the failed test to identify the flakiness.
Huge plus to this proposal.
TBH, I don't quite understand the use case for strictMode
in its current shape (without fail-fast behavior):
countSharding
+ strictMode: false
strictMode
as well (build success or failure doesn't matter much here, stats are visible anyway).Fail fast is now support via https://docs.marathonlabs.io/intro/configure#execution-strategy, as well as success fast depending on the execution mode selected.
Keep in mind that there are additional requirements now on runs mentioned in the docs.
The fast flag operates on a test-by-test basis, so it fails/succeeds the test, but not the whole run
Is it possible to retry a test until first fail in a strict mode? It will be useful to investigate flaky tests. At least until this issue #322 is fixed.