Skip to content

Add the Ability to Pick Test Modules - #1063

Open
SentryMan wants to merge 5 commits into
masterfrom
picking-test-modules
Open

Add the Ability to Pick Test Modules#1063
SentryMan wants to merge 5 commits into
masterfrom
picking-test-modules

Conversation

@SentryMan

Copy link
Copy Markdown
Collaborator

Resolves #1058 by:

  1. Using the Serviceloader and filtering for the provided module
  2. Using reflecting to instantiate the module if it was not registered as a service
  3. Making the global all beans test scope lazy (only load the whole classpath if a test does not specify modules)

@SentryMan SentryMan added this to the 12.7 milestone Aug 17, 2026
@SentryMan
SentryMan requested a review from rbygrave August 17, 2026 13:17
@SentryMan SentryMan self-assigned this Aug 17, 2026
@SentryMan SentryMan added the enhancement New feature or request label Aug 17, 2026
@SentryMan
SentryMan enabled auto-merge (squash) August 17, 2026 13:18

@stevenschlansker stevenschlansker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking at this issue!

Comment thread inject-test/src/main/java/io/avaje/inject/test/GlobalTestBeans.java Outdated
Comment thread inject-test/src/main/java/io/avaje/inject/test/MetaInfo.java Outdated
Comment thread inject-test/src/main/java/io/avaje/inject/test/MetaInfo.java
Comment thread blackbox-multi-scope/src/test/java/org/multi/main/BoundedCustomModuleTest.java Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] module selection for the avaje-inject-test global scope

2 participants