https://kotlinlang.org logo
#kotest-contributors
Title
# kotest-contributors
e

Emil Kantis

02/24/2024, 12:22 PM
Does anyone know what one might run in a testcontainer and purposefully provoke it to log certain things? I'm trying to test a change in the Testcontainers extension where I want to add logging options (for printing the stdout/stderr of the container on testfailure)
My first thought was simply a shell, but that requires Testcontainers to bind tty to it, so I lose the ability to collect logs for some reason. Second thought was some HTTP server where I just POST something to it, and it would print whatever body I post to stdout. Don't know if there's anything like it readily available..