Tests using @Testcontainer must not run in-container
Opened this issue · 0 comments
jasondlee commented
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