-
Notifications
You must be signed in to change notification settings - Fork 38.4k
Introduce before/after test execution callbacks in the TestContext framework [SPR-4365] #9043
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
Comments
Filip Neven commented This patch provides the necessary extra callbacks and implements them for all supported test frameworks |
Juergen Hoeller commented Filip, I'm afraid this will have to wait for 3.0 M1 since 2.5.5 has too many open issues of higher priority, and the 2.5 branch is going into maintenance mode after 2.5.5... I will make sure to address this request in the first 3.0 milestone, with first snapshots to be available in July. Juergen |
Grzegorz Borkowski commented Why is it set to Spring 3.1? If this is all about simply adding additional callbacks, it should be easy to have it in 3.0. The integration of Unitils with Spring TestContext would be very helpful for many projects, and it shouldn't wait forever to be done. |
Juergen Hoeller commented To be revisited in the course of our JUnit 5 work... |
Sam Brannen commented Since Spring Framework 5.0 will be based on Java 8, we are now planning to add these new callbacks as default interface methods in order to support backward compatibility for existing |
Sam Brannen commented Ongoing work on this issue can be seen in the following branch: https://github.com/sbrannen/spring-framework/commits/SPR-4365 |
Sam Brannen commented Resolved in GitHub commit f7f37cd:
|
Filip Neven opened SPR-4365 and commented
Objective
Consider providing additional callback hooks in the
TestExecutionListener
API for enabling more fine-grained integration with third-party testing frameworks (e.g., Unitils) and custom testing code.Building Block for JUnit 5 Support
Adding these new callbacks will also enabled Spring to support the new
BeforeTestExecutionCallback
andAfterTestExecutionCallback
APIs in JUnit 5's Jupiter extension model.Deliverables
TestExecutionListener
API.TestContextManager
.SpringJUnit4ClassRunner
.SpringExtension
for JUnit 5.AbstractTestNGSpringContextTests
.SpringJUnit4ClassRunner
, theSpringExtension
, andAbstractTestNGSpringContextTests
.Comments from Original Poster
Affects: 2.5.1
Attachments:
Issue Links:
Referenced from: commits 087efa6, 833dead, f7f37cd, 6efb166, 80018c6, fd00840, 3da5fbe, da89332, 5302566
3 votes, 4 watchers
The text was updated successfully, but these errors were encountered: