Skip to content

Introduce support for JUnit 5 in the TestContext framework [SPR-13575] #18151

Closed
@spring-projects-issues

Description

@spring-projects-issues

Juergen Hoeller opened SPR-13575 and commented

Work in Progress

The current work for supporting JUnit 5 in the Spring TestContext Framework can be seen in the spring-test-junit5 repository.

Feedback is Welcome

Developers are encouraged to try out the SpringExtension and provide feedback!

Deliverables

  1. Introduce a SpringExtension to be configured via @ExtendWith(SpringExtension.class) (analogous to @RunWith(SpringRunner.class) for JUnit 4)
  2. Implement ParameterResolver
  3. Implement BeforeAllCallback
  4. Implement AfterAllCallback
  5. Implement TestInstancePostProcessor
  6. Implement BeforeEachCallback
  7. Implement AfterEachCallback
  8. Implement BeforeTestExecutionCallback and AfterTestExecutionCallback
  9. Delete custom MethodParameterFactory
  10. Migrate to ExecutionContext.Store
  11. Provide the test exception to TestContextManager.afterTestMethod()

Reference URL: https://github.com/junit-team/junit5

Issue Links:

Referenced from: commits ecbec54, 862fb2a, 9a9551b, 7e783dd, 873fc53

2 votes, 9 watchers

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions