-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Document test execution lifecycle regarding user code and extensions #149
Comments
Your assumption is correct. ExceptionHandlerExtensionPoints will be invoked first thing if a test method fails.
|
Does this need better documentation? |
@marcphilipp, yes, this definitely needs to be fully documented. In general, we will eventually need to document the order in which all extension points are executed with regard to each other, possible interactions, etc. FYI: I just changed the title of this issue accordingly. |
Team decision: Add diagram to user guide to visualize test lifecycle and where extensions are called. |
Currently slated for M2. |
FYI: I added Related Issues and Deliverables sections to this issue's description and changed the title to reflect the intended scope. |
in progress |
Ummm.... wasn't this resolved in 5.0 M4? |
From a user perspective: yes. Technically, M4 still contained the broken Keynote file that @mmerdes removed later. I changed it anyway 👍 |
Related Issues
Deliverables
Original Issue Description
Hello,
I'm using JUnit 4.12 and I have a bunch of selenium tests. All I want is to have a rule that captures a screenshot when the test fails. Just like this guy here:
http://stackoverflow.com/questions/12078982/apply-rule-after-each-test-and-before-each-after-in-junit
Apparently it is not possible to do this with JUnit 4.x
Rule
because in my@After
methods I logout the user and they see the homepage. So when tests fail I always get screenshots of homepage, rather than the page that broke the tests.I'm reading now about Exception handling extension points here:
http://junit-team.github.io/junit5/
but to me it is still not clear if these extension points will be executed after the
@BeforeEach
and before the@AfterEach
. Can you please clarify that?Thanks.
The text was updated successfully, but these errors were encountered: