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.4

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.4
File Size Uploaded Provenance Actions
pytest_deduplicate-0.1.4.tar.gz 15.7 kB Without provenance Details for pytest_deduplicate-0.1.4.tar.gz

Built distribution (wheel)

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

Total release size: 31.8 kB

Release files / pytest_deduplicate-0.1.4.tar.gz

Download URL pytest_deduplicate-0.1.4.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d7bf01f690d53bad6066c21e5e616e5233b4b002025dd773a2495427efc462ad
BLAKE2b-256 checksum
How to use checksums
2512398d47395baaf28445c5f421a2405a8afda9d78b58cbd92d3854fb1ec99d
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.4-py3-none-any.whl

Download URL pytest_deduplicate-0.1.4-py3-none-any.whl
Size 16.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5acfd4e4f2d0d539b69f555ce585d65aa819e22ecd76883d08d10fe9e02f29d1
BLAKE2b-256 checksum
How to use checksums
1bdd33516e096eccc4da1a2fc0feae5217cd74a14f36f0b9b6343ce54fcfbe6c
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.4

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