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.

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

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file pytest-smell-1.0.5.tar.gz.

File metadata

  • Download URL: pytest-smell-1.0.5.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for pytest-smell-1.0.5.tar.gz
Algorithm Hash digest
SHA256 ae0c15b05284ead2c692def06c5f5b9cb716c724ceaa36ffe0cc45174e0822ce
MD5 7a43a2ad72b3e7ef135f31702b53d3aa
BLAKE2b-256 4e87b921cdcf6ec2de75768a338319bf224e98c0cafd786a3575b14ee5251626

See more details on using hashes here.

File details

Details for the file pytest_smell-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: pytest_smell-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for pytest_smell-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 30dea12b9560f5893ed1d5ac6bfb76a2a730e6e3d847e5f126f59a10833de1c3
MD5 2c0fa5f4f41f9c1b3db7e7e23fd2a505
BLAKE2b-256 2cffd6c761501e2edab9a209385f7918a1574a779f2c191a55217ebcaada4fac

See more details on using hashes here.

Supported by

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