We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
I wonder if there was really no request for this, but I could find no issue.
With the existing extension APIs, it is possible but clumsy to implement functions like rerunning failing test or things like:
@Test @ExpectedException(RuntimeException.class) pulic void testException() { throw new RuntimeException(); }
Something like an AroundEachCallback would be quite helpful. Usage should be something like this:
AroundEachCallback
public class RerunningExtension implements AroundEachCallback { @Override public void aroundTestMethod(Executable testIncludingBeforeAndAfter, ExtensionContext context) { while (cnt++ < getMaxNumberOfExecutions && failureExists) { try { failureExists = false; testIncludingBeforeAndAfter.execute(); } catch (Exception e) { failureExists = true; } } } }
The text was updated successfully, but these errors were encountered:
Closing this issue as a duplicate of #157.
Sorry, something went wrong.
AroundAll
AroundEach
AroundTest
No branches or pull requests
Overview
I wonder if there was really no request for this, but I could find no issue.
With the existing extension APIs, it is possible but clumsy to implement functions like rerunning failing test or things like:
Something like an
AroundEachCallback
would be quite helpful. Usage should be something like this:Related Issues
The text was updated successfully, but these errors were encountered: