-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Labels
type: improvementA minor improvement to an existing featureA minor improvement to an existing feature
Description
Feature description
During a @MicronautTest run, a controlled fixture of certain beans and mocks is created to test a specific bean, but the all classpath-reachable beans are defined, and all reachable @Scheduled methods are potentially executed, even though their bean (e.g.) @Singleton is not referenced from the test's beans closure.
This complicates fixture creation (e.g. missing dependencies, ....) , sometimes the bean must be scheduled in other way than @Scheduled annotation because of this.
Micronaut Test infrastructure could support disabling or postponing start of the scheduled code until after e.g. some micronaut test API call that releases the schedulers.
Metadata
Metadata
Assignees
Labels
type: improvementA minor improvement to an existing featureA minor improvement to an existing feature