SImple question about logging #10568
-
Hello i wan't to get rid of pytest without STDOUT redirection. I wan't to get rid off this green dot and green string. Basically i wan't to get rid of any pytest output without redirection. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
The string at the end is easy: Just pass another The dot is much harder, as that kind of thing isn't really intended. You can pull it off by wrapping the default import pytest
@pytest.hookimpl(hookwrapper=True)
def pytest_report_teststatus(report):
outcome = yield
category, letter, word = outcome.get_result()
if letter == ".":
outcome.force_result((category, "", word)) ...but with all that said, I can't help but ask: Why?! What's your goal? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-s -p no:terminal
will do the trick. 👍