GitHub user lamyaa opened a pull request:
https://github.com/apache/maven-surefire/pull/102
Option to rerun failures at the end of test execution
This PR introduces an option to rerun failing tests at the end of a test
suite execution.
The current option (``rerunFailingTestsCount``) reruns the failing tests
immediately after failure. There are several scenarios in which developers may
want the failing tests to be rerun later. For example, consider a flaky test
that tries to access a resource over a network. The test may fail whenever the
network is down and rerunning it a bit later may be more helpful than rerunning
it immediately (the network may recover later while it remains down
immediately).
Note that the two options can be combined. For example, if a developer
wants to rerun each failing test at most twice, the developer could choose to
rerun the failing test once immediately, and if it still fails, rerun it once
more at the end of the test suite. This strategy can be much better than
rerunning a failing test twice immediately.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/lamyaa/maven-surefire rerun_failures_at_end
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/maven-surefire/pull/102.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #102
----
commit 967e3ef29d114752185da97aebbabaccab69b248
Author: lamyaa <[email protected]>
Date: 2015-08-30T03:40:21Z
Option to rerun failures at the end of test execution
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]