Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transitive dependencies don't trigger test resources to start #580

Open
scprek opened this issue Apr 4, 2024 · 0 comments
Open

Transitive dependencies don't trigger test resources to start #580

scprek opened this issue Apr 4, 2024 · 0 comments
Assignees

Comments

@scprek
Copy link
Contributor

scprek commented Apr 4, 2024

Expected Behavior

I have a micronaut library that has

api("io.micronaut.redis:micronaut-redis-lettuce")

Therefore, I do NOT specify it explicitly like below in my service using the library

implementation("io.micronaut.redis:micronaut-redis-lettuce")

When I look at my IntelliJ extern libs I see redis

Screenshot 2024-04-04 at 5 10 56 PM

Expected

I then expect micronaut test resources to start my redis container but it does not

I AM including Kakfa in my repo since the library does not
implementation("io.micronaut.kafka:micronaut-kafka")

Actual Behaviour

[test-resources-service] 16:49:32.313 [ForkJoinPool.commonPool-worker-7] INFO  i.m.t.e.TestResourcesResolverLoader - Loaded 2 test resources resolvers: io.micronaut.testresources.kafka.KafkaTestResourceProvider, io.micronaut.testresources.testcontainers.GenericTestContainerProvider

Steps To Reproduce

  1. Create a mn library with api("io.micronaut.redis:micronaut-redis-lettuce")
  2. Include the library via implementation
  3. Start tests and watch redis not startup

Environment Information

  • MacOs
  • JDK 17
  • micronaut-tes-resources 2.3.0

Example Application

No response

Version

4.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: No status
Development

No branches or pull requests

2 participants