palantir/docker-compose-rule

Collecting logs behavior changes between version 0.34.0 vs latest

sc30 opened this issue · 2 comments

sc30 commented

previously, we were using version 0.34.0, for each test we ran, there is a step to verify some information in the logs.

when updating to latest version, Collection will occur when after the tests are finished executing, this makes tests to fail.

Is there any way to get around this?

collecting logs README.md from version 0.34.0:
This will automatically record logs for all containers in real time to the specified directory. Collection will stop when the containers terminate.

collect logs README.md from master:
This will collect logs for all containers. Collection will occur when after the tests are finished executing.

This is a behaviour change in 0.36.1. Can you run your code to verify information in the logs in a @After, or @AfterAll, or provide a custom .logCollector(...) which does your validation?

sc30 commented

Hi, @CRogers thanks for your quick reply. Could you elaborate more on .logCollector approach?