Skip to main content

Automated bad smell detection tool for Pytest

Project description

Make your Python tests smell good!

Pytest-Smell is a Python library for detecting bad smells in unit tests written with the help of Pytest.


Use the package manager pip to install foobar.

pip install pytest-smell


# Basic usage

# Verbose output with traceback to smell in code
pytest-smell --verbose

# Specifying tests directory (if there is one dedicated) for optimization
pytest-smell --tests_path=path_to_tests

# Specifying output path for exporting results as a CSV file
pytest-smell --out_path=path_to_desired_directory

# Using it in a CI pipeline (returning 0 as exit code if no smells were found, 1 otherwise)
pytest-smell --ci


The library is still work in progress and serves as a research tool. Any collaboration or discussion is welcome. Contact:

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

pytest-smell-1.0.5.tar.gz (6.5 kB view hashes)

Uploaded source

Built Distribution

pytest_smell-1.0.5-py3-none-any.whl (7.6 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page