Looking for Feedback on Rewrite for Pytest in VS Code #10463
Replies: 2 comments 2 replies
-
Is my understanding correct that you're basically trying to mirror the structure of pytest's own collection tree, which you can view by running pytest with I'm a bit confused because you say "My biggest concern is having to start at the lowest level of the tree (the test_items) and build the file structure up from there", but your pseudocode seems to do the exact opposite, no? If you haven't yet, you might also want to look at the code pytest itself uses for its pytest/src/_pytest/terminal.py Lines 762 to 801 in 50b232b |
Beta Was this translation helpful? Give feedback.
-
Hello @The-Compiler, thank you for getting back to me! So from my understanding the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! 👋

My name is Eleanor I am a new developer on the Python for VS Code team at Microsoft. I am working on a pytest rewrite and wanted some feedback from experienced pytest users about my logic to ensure VS Code will have the optimal pytest structure for discovery and run. Currently I am working on discovery, so discovering all the tests in a session and formatting then into nodes that will sit in our test tree view. example image below:
I have build a plugin that modifies behavior following test collection and will use mainly one flow for this discover test action. I have outlined the pseudocode below and want to know if I'm making best use of the pytest API. My biggest concern is having to start at the lowest level of the tree (the test_items) and build the file structure up from there to create a top down structure where the session instead refers to its direct children which are files/folders.
Thank you in advance! I look forward to collaborating with the open source community on this as I move forward 😃
Beta Was this translation helpful? Give feedback.
All reactions