Configure different test runner in monorepo #19345
-
I have an existing setup where I use VSCode Python testing in a Django project with pytest. Now I am adopting a monorepo approach and will use pants as the build tool. I am wondering if it is possible to configure the Python testing extension to work with a different test runner? I guess, that hitting the "Run Tests" button will just call pytest for example. Is there any way to use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There currently isn't a way to use another test runner as we need to control the test runners output to parse it. In our testing code rewrite we will be moving to a plug-in for pytest. In that instance, if there's a way to specify plug-ins via environment variables for pytest, we may be able to allow you to specify an alternative way to launch pytest. If you would like to have this sort of feature, please feel free to open a feature request. |
Beta Was this translation helpful? Give feedback.
There currently isn't a way to use another test runner as we need to control the test runners output to parse it.
In our testing code rewrite we will be moving to a plug-in for pytest. In that instance, if there's a way to specify plug-ins via environment variables for pytest, we may be able to allow you to specify an alternative way to launch pytest. If you would like to have this sort of feature, please feel free to open a feature request.