Skip to content

Allow excluding elements from classpath scanning #1158

@GuusLieben

Description

@GuusLieben

Description

The test suite is currently capable of adding specific components to the environment using @TestComponents, but is not able to do the opposite, which is exclude specific parts of the classpath.

As such, it'd be nice to have an added integration to exclude specific packages and/or components from specific tests.

Use case

For uber modules (similar to Hartshorn's integration-tests) it can be annoying to have to disable base package scanning, and then manually enable everything you still want to keep, if all you need is to exclude a specific package or module. This is even more so if you wish to exclude a specific implementation or component.

Related issues

No response

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