Skip to content

Jump to pytest node in test tree

Jump to pytest node in test tree selects the matching node in the active pytest test tree for the test at the editor caret.

How to use it

Place the caret inside a pytest test function or class, then run BetterPy: Jump to Test Tree Node from the editor context menu or intention list.

When it helps

Use this feature after a pytest run when the editor is focused but you want to inspect the matching result node, failure state, or surrounding suite in the test tree.

Notes

  • The action is available only when there is an active non-empty test tree.
  • The feature is gated by the Jump to pytest node in test tree setting under Settings | BetterPy | Testing (Pytest) | Test Tree & Navigation.