avast/gradle-docker-compose-plugin
JUnit to capture container outputs with test output
Offen
#389 geöffnet am 30.11.2022
enhancementhelp wanted
Repository-Metriken
- Stars
- (429 Sterne)
- PR-Merge-Metriken
- (Durchschn. Merge 24T 11h) (2 gemergte PRs in 30 T)
Beschreibung
test {
useJUnitPlatform()
}
dockerCompose.isRequiredBy(test)
dockerCompose {
captureContainersOutput = true
Currently container output capture flows into main Test Results window:

Regretfully test results of a particular test do not contain them:

With many tests it would be required to find log messages that happened during a particular case buried inside long logs.
Is it possible to somehow capture container output that was produced during a particular test run with test output, so when I click on a particular test one could see both:
- logs from call containers during that particular test
- logs from that particular test code
Any workarounds are welcome! (And thanks for great plugin!)