A CLI tool that helps you quickly navigate to test functions in pytest files.
Project description
TestJump (TJ)
A CLI tool that helps you quickly navigate to test functions in pytest files.
When making fundamental changes to a project, multiple test cases often fail. Instead of manually opening files and searching for each failing test, TestJump allows you to jump directly to the test location 🤷.
Installation
Install this tool using pip:
pip install testjump
Or using pipx:
pipx install testjump
Or using uv:
uv tool install testjump
Usage
- Jump to a test function:
tj tests/test_calculator.py::test_addition
- Jump to a test class method:
tj tests/test_user.py::TestUser::test_user_creation
Interactive Usage with Multiple Files
You can use it interactively with a file containing multiple jump points:
for line in $(cat jumppoints.txt); do tj $line; echo "Press any key to continue..."; read; done
Configuring Your Editor
TestJump uses VS Code by default, but you can configure your preferred editor by setting the TJ_EDITOR environment variable:
# For VS Code (default)
export TJ_EDITOR=vscode
# For Vim
export TJ_EDITOR=vim
# For IntelliJ IDEA
export TJ_EDITOR=idea
# For PyCharm
export TJ_EDITOR=pycharm
# For Neovim
export TJ_EDITOR=nvim
Add this to your .bashrc or .zshrc to make it permanent.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file testjump-0.1.3.tar.gz.
File metadata
- Download URL: testjump-0.1.3.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23eaa0d078ce9a3d77f27d1dd4b0a2e47ebb479449ca61b66c78841d7bad7517
|
|
| MD5 |
14f73363b1755c5e9e85a044f9ec9ae8
|
|
| BLAKE2b-256 |
9ea76e23a3d9b109b602c3978d9a786de15e107a80ef39c32c6efd238649b104
|
File details
Details for the file testjump-0.1.3-py3-none-any.whl.
File metadata
- Download URL: testjump-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7480bed752254531d48ff76ab876350170d2a59b2075829db7ea29632ba6ca70
|
|
| MD5 |
97ab88400fdf62212b729250ebe830fb
|
|
| BLAKE2b-256 |
ddbf6944307081d0a7278a72858005cb3a0f3d1a1324e09becd462dc4443f85f
|