Skip to content

Allow @Nested class lifecycle to be configured via junit.jupiter.testinstance.lifecycle.default #4930

Description

@nlisker

Related to #1575.

The configuration junit.jupiter.testinstance.lifecycle.default applies only to top level classes (by my tests - I didn't see it documented). I would have expected it to work for nested classes as well.

Deliverables

  • An option to globally configure the lifecycle of nested classes
  • Preserve backwards compatibility (the current behavior)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions