Replies: 1 comment 2 replies
-
Appreciate any input on this matter. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can logging information from pytest be piped to junit-xml without being shown in console output? Used Windows 10 to test this code.
We have the following simple unittest:
The unittest is invoked as shown below, notice that diagnostics info message is included in console output. This is obviously a simple example but in a scenario with many tests and logging messages the console will quickly become very messy. We would therefore prefer that logging messages are not displayed in console and only show in the junit-xml file. We not be able to configure this setup yet.
The pytest.ini file looks like this
The junit-xml file looks like this;
A second tiny question, does pytest allow formatting the message that is displayed in junit-xml? The current text is a bit verbose and contains what I am guessing is color values for parts of the text.
Beta Was this translation helpful? Give feedback.
All reactions