test explorer doesn't respect pytest hooks #19668
Replies: 2 comments
-
When "running pytest from the command line", is that by copying the command that we use as recorded in the Output panel, or how you typically run it? Also know we are rewriting our pytest support to use a pytest plugin itself, so this will eventually get fixed (no ETA unfortunately). |
Beta Was this translation helpful? Give feedback.
-
Good to know! Just wanted to make sure this is not something connected to a misconfigured plugin or something like that.
Its just by running "pytest" command from the root of the repo, the simplest scenario possible. |
Beta Was this translation helpful? Give feedback.
-
On our current project we're extending pytest functionality using hooks defined in conftest.py similar to how its described in this answer. The problem is that test explorer is not recognizing dynamically added test items and never shows them in the test tree view. Running pytest from command line works just fine: discovers and runs dynamically added test without a problem. Can you please advice how to resolve this problem?
Beta Was this translation helpful? Give feedback.
All reactions