testcontainers / testcontainers/testcontainers-java

Disable STDOUT or redirect due to Maven Surefire error

Open
#1,304 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

resolution/acknowledged type/bug
Dominant language
Java
Stars
8.7k
Forks
1.9k
Avg merge
2d 17h
Merged PRs (30d)
9

Description

When running test containers with Maven Surefire I get the following error: https://maven.apache.org/surefire/maven-failsafe-plugin/faq.html#corruptedstream looking in the logs it seems Testcontainers and Surefire are trying to write to stdout at the same time. How can I disable this in Testcontainers?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Maven Surefire FAQ linked in the issue and reproduce the corrupted-stream error while running Testcontainers tests. Trace the competing stdout writes between Testcontainers and Surefire; done means the tests run without the corrupted-stream failure and their output remains usable.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, java
Domain
build-system, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.