A line break after Pytest's logs on console
See original GitHub issueWhat’s the problem this feature will solve?
Improving readability of console messages. Currently the Pytest’s messages are followed by application log messages on the same line. For example:
[INFO] ...
[INFO] ...
PASSED[INFO]...
[INFO] ...
I think it would be beneficial to add a line break after Pytest’s console logs.
Describe the solution you’d like
Alternative Solutions
Additional context
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Logging within pytest tests - python - Stack Overflow
Since version 3.3, pytest supports live logging, meaning that all the log records emitted in tests will be printed to the terminal ...
Read more >How to manage logging — pytest documentation
pytest captures log messages of level WARNING or above automatically and displays them in their own section for each failed test in the...
Read more >pytest Documentation - Read the Docs
Run the following command in your command line: ... The log levels set are restored automatically at the end of the test.
Read more >Welcome to Pytest-BDD's documentation! - Read the Docs
Functions decorated with the scenario decorator behave like a normal test function, and they will be executed after all scenario steps. from pytest_bdd...
Read more >Better pytest failure summaries - Qxf2 BLOG
addHandler(streamHandler) log.error('Hello from log: You should not see me in the pytest summary') #write into a log print 'Hello from ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Would have been great if something could be done Running
pytest -v
produces this on most of the projects@ValaJeyhani FYI in your example in https://github.com/pytest-dev/pytest/issues/8574#issuecomment-828750810 you don’t need a conftest.py file, because you can specify the logging options (
log_date_format
,log_format
andlog_level
) inpytest.ini
.