Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>pytest-grabberNew to Visual Studio Code? Get it now.
pytest-grabber

pytest-grabber

Minkey27

|
457 installs
| (1) | Free
Grab the full_path, class_name and method for easy pasting. You can even add the command as prefix!
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

pytest-grabber README

This extension generates a relative path to your function ready to be pasted into your terminal as a pytest arg to run a single testcase.

Features

pytest-grabber.generatePath: Generates a path like ${filePath}::${className}::${methodName} where method is optional.

Known Issues

None so far.

Release Notes

1.0.0

Initial release of pytest-grabber!

1.0.1

  • Fixed an issue where relative path would include the root directory of the workspace if one was set.

1.2.1

  • Added support for test methods that don't have a parent class.
  • Fixed adding a whitespace after the prefixCmd.

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft