How to enable logging when running with --collect-only
#8271
Unanswered
jacek-lewandowski
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
-
Hi,
I have some custom filtering depending on command line parameters. Some tests are skipped due to something and I want to log the information about why something was skipped. I use standard logging mechanism and run
pytest
with--collect-only -q
. I've setlog_print=True
,log_level=INFO
,log_format
andlog_file
. Although the log file is created, it remains empty after execution. I know that my custom filtering is working fine and I'm sure I go through the code which is expected to log some messages.Is it possible to enable logging in this case or I'm doing something wrong?
Thanks,
Jacek
Beta Was this translation helpful? Give feedback.
All reactions