I have a test which asserts that ksp compilation fails when a certain invariant is broken. The test passes, but the failure I log through to ksp is always printed to stdout. Is there anyway of preventing this? It’s fine for me but for other members of my team they may believe this is a real error when reading CI logs rather than a situation I’m simulating in test.
03/10/2023, 7:00 PM
Some other solutions out there have wrapped the
with their own implementation. So in a test, your implementation could forward to a silent logger and in prod, the implementation could forward to the real