🎯 A Zsh plugin that lets you select pytest tests using fzf and insert them into your terminal.
- Supports parameterized tests like
tests/test_basic.py::test_customers[/v1-200] - Uses
pytest --collect-only -qto dynamically list tests - Presents test list via
fzf - Inserts the selected test into the current command line
- Binds to
Ctrl+Pfor quick access - Automatically adds quotes around test names that contain special characters (like
[]for parametrized tests)
Run the following command to clone the repository:
git clone https://github.com/jszczepaniak/zsh-pytest-fzf ~/.oh-my-zsh/custom/plugins/zsh-pytest-fzfAdd the plugin to your ~/.zshrc file, for example:
plugins=(git zsh-pytest-fzf)
Load the new configuration:
source ~/.zshrc