Using zaptest and observer #1420
Unanswered
3vilhamster
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey folks.
I use zap and for test usually I use zaptest to ensure that I'll see logs only from failed tests in output.
But now I need to verify that some logs were written, in this case zap provides a zaptest/observer package. The problem for me is that observer could be used only with zap.New(core) which still writes stdout/stderr together with observer.
I'd like to know if there is a solution that allows me use both zaptest and zaptest/observer together?
Or maybe request a feature/help with PR to do that.
Beta Was this translation helpful? Give feedback.
All reactions