Correlate output with specific test run using a plugin? #11672
Replies: 4 comments 5 replies
This comment was marked as spam.
This comment was marked as spam.
-
It's unclear what the ask is, the default output capture assigns the output to tests already |
Beta Was this translation helpful? Give feedback.
-
Curious, what plugin you are getting your info from that is not providing you what you need? |
Beta Was this translation helpful? Give feedback.
-
Hi everyone! Thank you for your answers and input! I think my settings were configured incorrectly based on some historic code but once I got those fixed and check out Sorry to bother you all and thank you for your quick replies! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello again!
I had a quick question regarding output from tests, for context I work on python testing support in vscode. I have gotten asks on the vscode-python extension like here to correlate output to a given test so I can display this output in the error pop up about the test. By output I mean print statements that are called during the run of this test and any logging based on the level the user defines.
I looked through the repo and tried a few things out with the plugin I use to collect pytest information but am currently seeing no way to connect output to a given test run when pytest is called to run a group of tests. For example, if the user selects to run 4 tests, and so I call pytest run once on all 4 of those, I wasn't seeing a clear way to separate output between each test with 100% confidence.
Is this correct or is there a way to correlate output to a test when using a pytest plugin? I am also open to ideas if you think of another way this could potentially be achieved.
Thank you as always!
Beta Was this translation helpful? Give feedback.
All reactions