Skip to content

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

@jasondlee

Description

@jasondlee

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions