Skip to main content

pytest_deduplicate

The pytest_deduplicate is designed to identify duplicate or superseeding unit tests that have the same or bigger code coverage. It can be particularly useful when unit tests are automatically generated based on input/output information for a function, using a large amount of available input data (for example, with the help of the auger library).

This tool groups each test together based on the coverage set. By invoking unit testing with this tool, it will collect code coverage for each test and generate a list of duplicate tests. However, it is important to note that false-positives may occur if, for example, there are regular expressions involved, as the code coverage in such cases may appear the same.

To use simply call:

pytest_deduplicate <your_project_directory>

Result example:

Duplicates:
test_collect.py:94:0: W001 tests with duplicate coverage: test_minimal_missing_both_mo (duplicate-test)
test_collect.py:195:0: W001 tests with duplicate coverage: test_mapping_couldnt_find_mo (duplicate-test)

Superseeded:
test_collect.py:83:0: W002 test test_minimal_raise_missing_mo covers more when below (bigger_coverage)
test_collect.py:62:0: W003 test test_minimal_raise_valid covers less when test_minimal_missing_mo (smaller_coverage)

Metadata

Release files for pytest_deduplicate 0.1.3

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_deduplicate 0.1.3
File Size Uploaded Provenance Actions
pytest_deduplicate-0.1.3.tar.gz 15.6 kB Without provenance Details for pytest_deduplicate-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 31.7 kB

Release files / pytest_deduplicate-0.1.3.tar.gz

Download URL pytest_deduplicate-0.1.3.tar.gz
Size 15.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d1bff6ac6ed233f2119dfaf29bb3613fab9d2a23a6454dc43efe07471c78b7fa
BLAKE2b-256 checksum
How to use checksums
9d2f134315ad168fca286aa416b4683761bbcf6532cb41f34d4053decbe6ffa0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / pytest_deduplicate-0.1.3-py3-none-any.whl

Download URL pytest_deduplicate-0.1.3-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4a278f93325cd6efc9031d13c9908734beaabc252439cd8fa02fdea754d7e5d
BLAKE2b-256 checksum
How to use checksums
adb3ca89e45644782e2282b74f121b72123e88317014f454442117644aaae3d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for pytest_deduplicate 0.1.3

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.

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