Resources outlining the best way to alter pytest terminal output #11526
Unanswered
harryjulian
asked this question in
General
Replies: 1 comment
-
I don't think there are specific guide lines for that. Btw in case you don't know, the pytest_terminal_summary hook can be used for that. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently writing a pytest plugin that will give users the ability to to accept/reject saving an artifact from a test, after the tests have ran (I'll ideally print the test code and some of it's output, and then give a [Y/n] response for the user). I want to add this after the regular pytest output in stdout, aiming to keep to the current styling. Are there any resources that might help me work out the best way to do it? It it just a matter of copying the formatting and running a hook after the tests have finished?
Beta Was this translation helpful? Give feedback.
All reactions