Skip to content

Introduce '@EnabledIfDockerAvailable' JUnit 5 annotation (#8613)#8636

Merged
eddumelendez merged 2 commits into
testcontainers:mainfrom
it-at-m:8613-enabledifdockeravailable-jupiter-annotation
May 20, 2024
Merged

Introduce '@EnabledIfDockerAvailable' JUnit 5 annotation (#8613)#8636
eddumelendez merged 2 commits into
testcontainers:mainfrom
it-at-m:8613-enabledifdockeravailable-jupiter-annotation

Conversation

@eidottermihi

Copy link
Copy Markdown
Contributor

Introduces a @EnabledIfDockerAvailable annotation to conditionally enable a JUnit 5 test only if Docker is available (as proposed in #8613).

To reuse the same "Docker-available"-detection as in TestcontainersExtension this piece was extracted to a new class DockerAvailableDetector, which is then used by both.

@eidottermihi eidottermihi requested a review from a team May 16, 2024 07:37
@eddumelendez eddumelendez added this to the next milestone May 16, 2024
Co-authored-by: Eddú Meléndez Gonzales <eddu.melendez@gmail.com>
@eddumelendez eddumelendez merged commit af6ca85 into testcontainers:main May 20, 2024
@eddumelendez

Copy link
Copy Markdown
Member

Thanks for your contribution, @eidottermihi !

fokion pushed a commit to fokion/testcontainers-java that referenced this pull request Jan 18, 2025
Fixes testcontainers#8613

---------

Co-authored-by: Eddú Meléndez Gonzales <eddu.melendez@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants