Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-13575

Introduce support for JUnit 5 in the TestContext framework

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 5.0 M1
    • Component/s: Test
    • Labels:
      None

      Description

      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()

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sbrannen Sam Brannen
              Reporter:
              juergen.hoeller Juergen Hoeller
              Last updater:
              Spring Issues Spring Issues
              Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 19 weeks, 1 day ago