Skip to content

jszczepaniak/zsh-pytest-fzf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zsh-pytest-fzf

🎯 A Zsh plugin that lets you select pytest tests using fzf and insert them into your terminal.

✨ Features

  • Supports parameterized tests like tests/test_basic.py::test_customers[/v1-200]
  • Uses pytest --collect-only -q to dynamically list tests
  • Presents test list via fzf
  • Inserts the selected test into the current command line
  • Binds to Ctrl+P for quick access
  • Automatically adds quotes around test names that contain special characters (like [] for parametrized tests)

🧰 Requirements

⚙️ Installation

1. Clone the plugin into your Oh My Zsh custom plugins directory

Run the following command to clone the repository:

git clone https://github.com/jszczepaniak/zsh-pytest-fzf ~/.oh-my-zsh/custom/plugins/zsh-pytest-fzf

2. Plugin activation

Add the plugin to your ~/.zshrc file, for example:

plugins=(git zsh-pytest-fzf)

Load the new configuration:

source ~/.zshrc

About

Oh My Zsh plugin for Pytest autocompletion

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages