You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
A common debugging task when a test fails is to check the container logs, especially when running cluster tests where it's not feasible to just use a debugger. This is tedious to do manually in every test, and should be easy to have a small extension which does just that.
Describe the solution you'd like
Add a flag on all ZeebeNodes, e.g. withPrintLogsOnFailure(boolean), and implement TestLifecycleAware. On failure, if true, then dump all the container logs before it is removed.
Describe alternatives you've considered
Each user manually implements this in their own project, or using AfterEach callback in every suite.
npepinpe
changed the title
Add Junit 5 extension to automatically dump container logs on failure
Add option to dump container logs on failure
Sep 26, 2022
Is your feature request related to a problem? Please describe.
A common debugging task when a test fails is to check the container logs, especially when running cluster tests where it's not feasible to just use a debugger. This is tedious to do manually in every test, and should be easy to have a small extension which does just that.
Describe the solution you'd like
Add a flag on all
ZeebeNodes
, e.g.withPrintLogsOnFailure(boolean)
, and implementTestLifecycleAware
. On failure, if true, then dump all the container logs before it is removed.Describe alternatives you've considered
Each user manually implements this in their own project, or using
AfterEach
callback in every suite.Additional context
See https://github.com/camunda-cloud/zeebe/blob/86f1c1cd447ed94a0c4c0b2907334bb4903ac40c/test-util/src/main/java/io/camunda/zeebe/test/util/testcontainers/ContainerLogsDumper.java
The text was updated successfully, but these errors were encountered: