Skip to content

Investigate using JUnit 5 EngineTestKit for container tests #825

@rhusar

Description

@rhusar

Summary

Per review feedback on #823, investigate whether EngineTestKit from junit-platform-testkit (already a dependency) could replace the manual LauncherFactory + SummaryGeneratingListener approach in JUnitTestBaseClass.run().

Reference: https://docs.junit.org/6.0.3/advanced-topics/testkit.html

Details

Currently all container tests extend JUnitTestBaseClass which uses LauncherFactory to discover and execute tests. EngineTestKit provides a more fluent, purpose-built API for testing JUnit 5 extensions.

The main consideration is that the mock TestRunnerAdaptor wiring, Cycle tracking, and lifecycle assertions would still be needed — EngineTestKit would only simplify the runner invocation. A refactoring of JUnitTestBaseClass.run() to use EngineTestKit internally would benefit all tests rather than adopting it piecemeal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions