You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I love this extension, but it would be truly awesome to be able to filter (and then run) tests within the Test Explorer side pane based on the pytest marker that tests have been annotated with 🚀
Quick idea would be to extend the @tag functionality with something like @pytest:<marker> .
A list of known (i.e. registered) markers could be scanned for within the config files that pytest itself lists. Alternatively the information can be gathered from pytest itself via pytest --markers, e.g.
$ pytest --markers | grep -E '^@pytest.mark.'| grep -Ev '^@pytest.mark.[a-z]+\('
@pytest.mark.unittest: mark as an isolated unit test
@pytest.mark.integration: mark as an integration test
@pytest.mark.django: mark as requiring django
@pytest.mark.slow: mark as a slow-running test
@pytest.mark.no_cover: disable coverage for this test.
@pytest.mark.tryfirst: mark a hook implementation functionsuch that the plugin machinery will try to call it first/as early as possible.
@pytest.mark.trylast: mark a hook implementation functionsuch that the plugin machinery will try to call it last/as late as possible.
What would need to be done to make this happen?
The text was updated successfully, but these errors were encountered:
I love this extension, but it would be truly awesome to be able to filter (and then run) tests within the Test Explorer side pane based on the pytest marker that tests have been annotated with 🚀
Quick idea would be to extend the
@tag
functionality with something like@pytest:<marker>
.A list of known (i.e. registered) markers could be scanned for within the config files that pytest itself lists. Alternatively the information can be gathered from pytest itself via
pytest --markers
, e.g.What would need to be done to make this happen?
The text was updated successfully, but these errors were encountered: