Skip to content

Test execution exceptions are not supplied to extensions #92

Closed
@sbrannen

Description

@sbrannen

Status Quo

TestExtensionContext does not provide access to any exception thrown during execution of the test method or other extensions.

Deliverables

  • Reintroduce a getTestException() method in the TestExtensionContext API.
  • Ensure that the JUnit Jupiter TestEngine infrastructure tracks any exceptions encountered during test method or extension execution and supplies the exception to extensions via the TestExtensionContext.
    • Note: it is assumed that the engine already properly tracks the exceptions, but tests need to be introduced to verify the expected behavior.

Further Resources

See the afterEach() method in the SpringExtension for a concrete example of where the test exception is required.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions