avast/gradle-docker-compose-plugin

JUnit to capture container outputs with test output

開放

#389 建立於 2022年11月30日

 (1 則留言) (0 個反應) (0 位負責人)Groovy (103 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (429 顆星)
PR 合併指標
 (平均合併 24天 11小時) (30 天內合併 2 個 PR)

描述

test {
	useJUnitPlatform()
}
dockerCompose.isRequiredBy(test)

dockerCompose {
	captureContainersOutput = true

Currently container output capture flows into main Test Results window: Снимок экрана 2022-11-30 в 06 21 49

Regretfully test results of a particular test do not contain them: Снимок экрана 2022-11-30 в 06 22 30

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!)

貢獻者指南