Skip to content
New issue

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

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

Already on GitHub? # to your account

Tests using @Testcontainer must not run in-container #25

Open
jasondlee opened this issue Jul 25, 2024 · 0 comments
Open

Tests using @Testcontainer must not run in-container #25

jasondlee opened this issue Jul 25, 2024 · 0 comments
Assignees
Milestone

Comments

@jasondlee
Copy link
Collaborator

Currently, we do not support @TestContainer running inside a container (e.g., WildFly). We should add checks to make sure this doesn't happen. If class has a field with @TestContainer:

  • Check for @deployment
  • If found, verify that testable=false is set
  • Verify that class is annotated with @RunAsClient
  • If either of these checks fail, error out so the test fails early and with a meaningful message
@jasondlee jasondlee self-assigned this Jul 25, 2024
@jamezp jamezp added this to the 1.1.0 milestone Jul 25, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants