Skip to main content

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.

Installation

Use the package manager pip to install foobar.

pip install pytest-smell

Usage

# Basic usage
pytest-smell

# 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

Contributing

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

Metadata

Release files for pytest-smell 1.0.5

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

Source distribution (sdist)

Source distribution for pytest-smell 1.0.5
File Size Uploaded
pytest-smell-1.0.5.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-smell 1.0.5
File Interpreter ABI Platform
pytest_smell-1.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 14.1 kB

Release files / pytest-smell-1.0.5.tar.gz

Download URL pytest-smell-1.0.5.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ae0c15b05284ead2c692def06c5f5b9cb716c724ceaa36ffe0cc45174e0822ce
BLAKE2b-256 checksum
How to use checksums
4e87b921cdcf6ec2de75768a338319bf224e98c0cafd786a3575b14ee5251626
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Release files / pytest_smell-1.0.5-py3-none-any.whl

Download URL pytest_smell-1.0.5-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
30dea12b9560f5893ed1d5ac6bfb76a2a730e6e3d847e5f126f59a10833de1c3
BLAKE2b-256 checksum
How to use checksums
2cffd6c761501e2edab9a209385f7918a1574a779f2c191a55217ebcaada4fac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

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