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

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

Conversation

eidottermihi
Copy link
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 as a code owner 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
100 checks passed
@eddumelendez
Copy link
Member

Thanks for your contribution, @eidottermihi !

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.

None yet

2 participants