Skip to main content

testfinder - Find tests easier

Command-line tool to find, print all the test cases in a project.

  • Find your test methods, class names faster.
  • Integrate with other search/filtering/autocomplete tools like bash, grep, fzf.
  • Defaults to pytest test invocation syntax. -- Other invocation syntax like Django coming soon!

Install

pip install testfinder

Usage

cd <project-root>
testfinder

with fzf

fzf is an interactive Unix filter for command-line that can be used with any list and supports fuzzy searches.

  • Install fzf

  • Run pytest and find your test

pytest $(testfinder | fzf)

asciicast

How does it work?

In Python the files containing tests usually have the following naming conventions:

  • tests.py
  • test_*.py
  • *_test.py
  • tests/__init__.py

It enumerates all the files above, and discovers all the test cases in those files with a few simple regexes.

Metadata

Release files for testfinder 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for testfinder 0.0.2
File Size Uploaded Provenance Actions
testfinder-0.0.2.tar.gz 3.2 kB Without provenance Details for testfinder-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for testfinder 0.0.2
File Interpreter ABI Platform Actions
testfinder-0.0.2-py3-none-any.whl Python 3 none any Details for testfinder-0.0.2-py3-none-any.whl

Total release size: 6.7 kB

Release files / testfinder-0.0.2.tar.gz

Download URL testfinder-0.0.2.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
662256a9fb2dbe2fd4050d742c95f343558d306e5149dd3dcd9e404e203f620c
BLAKE2b-256 checksum
How to use checksums
0442761f43563c693a7de24aba7bfe6332db60e46648f11b09da0b20cbddfaea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.5 CPython/3.9.2 Darwin/20.3.0

Release files / testfinder-0.0.2-py3-none-any.whl

Download URL testfinder-0.0.2-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea441a55a9dfa1545b9b9bd288831cd523eaa5a3972b9123c7a335b10f28466a
BLAKE2b-256 checksum
How to use checksums
7e489d9c946441a6dcf5a103ae4bc2a8d08f84eb756f284fad114d3a764106b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.5 CPython/3.9.2 Darwin/20.3.0

Security for testfinder 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page