serhii.net

In the middle of the desert you can say anything you want

11 Dec 2023

Pytest logging output through CLI

I come back to the topic every once in awhile, but this time How To Use Pytest Logging And Print To Console And File (A Comprehensive Guide) | Pytest With Eric gave me the only solution I’ll ever need:

poetry run pytest --log-cli-level=INFO

which works as-is without any additional packages etc.

Nel mezzo del deserto posso dire tutto quello che voglio.
comments powered by Disqus