Skip to content

Toggle pytest skip from test tree

Toggle pytest skip from test tree adds or removes @pytest.mark.skip for selected pytest nodes.

How to use it

Select a pytest function, class, module, or pytest explorer entry, then run BetterPy: Toggle Pytest Skip from the context menu.

When it helps

Use this action when triaging failures from the test results view and you want to skip or unskip the affected test without navigating manually through the project tree.

Notes

  • Function selections toggle the marker on that function.
  • Class and module selections toggle the marker at the matching scope.
  • The feature is gated by the Toggle pytest skip from test tree setting under Settings | BetterPy | Testing (Pytest) | Test Tree & Navigation.