GUI option to force running skipped pytest tests OR allow user selectable args at GUI run time? #24705
Labels
area-testing
community ask
Feature request that the community expressed interest in
feature-request
Request for new features or functionality
needs community feedback
Awaiting community feedback
I want to be able to mark my tests with
@pytest.mark.skip(reason="This test should not run in automation")
and not run them automatically. This includes running locally by default and in the test explorer. So I can run all tests in the test explorer and it will skip these marked tests- this is how it works currently.BUT I would also like a UI option that would allow me to right click on a test in test explorer or the editor and select "Force run test" or "Include skipped tests" or something like that.
There are a bunch of ways to fiddle with pytest to exclude/include tests when running via command line, but I want a purely UI feature for this and I want it selectable via the UI- ie not in some static config file I would have to continually modify before clicking a test in the GUI.
Could this be possible? Maybe if "Include skipped tests" is too specific a feature what about "Run test with pytest arg profile" and let users define selectable lists of args?
So in settings.json:
And in the test explorer I could right click a test, highlight "Run test with pytest arg profile" and get a drop down for "my_arg_profile_one" and "my_arg_profile_two". Doing this would obviously allow for a bunch of other use cases where you want to run tests with different settings seamlessly through the GUI.
This seems like it would be easy to roll, you would just grab a list of args from settings and append to the pytest command the GUI was already going to run.
The text was updated successfully, but these errors were encountered: