Skip to main content

A Pytest plugin to drop duplicated tests during collection

Project description

http://img.shields.io/pypi/v/pytest-drop-dup-tests.svg See Build Status on Travis CI See Build Status on AppVeyor

A Pytest plugin to drop duplicated tests during collection.

Pytest by default will collect all tests from directories or files given in the command-line. For example, if you execute:

py.test tests/unit tests/

Tests from tests/unit will appear twice, because they will be collected again when pytest sees the tests directory in the command-line.

This plugin is intended for the cases where the user wants to run all tests from tests/unit first and then the rest of the tests under tests, without duplicates.

This plugin was born from the discussion taken in #1187.


This Pytest plugin was generated with Cookiecutter along with @hackebrot’s Cookiecutter-pytest-plugin template.

Requirements

  • Python 2.7 or 3.4+

  • pytest >= 2.7

Installation

You can install “pytest-drop-dup-tests” via pip from PyPI:

$ pip install pytest-drop-dup-tests

Usage

The plugin is enabled by default, no other action is necessary.

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the MIT license, “pytest-drop-dup-tests” is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

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-drop-dup-tests-0.1.0.zip (7.1 kB view details)

Uploaded Source

Built Distribution

pytest_drop_dup_tests-0.1.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file pytest-drop-dup-tests-0.1.0.zip.

File metadata

File hashes

Hashes for pytest-drop-dup-tests-0.1.0.zip
Algorithm Hash digest
SHA256 7e3fa8512f002560508026a421108819f447ce971c38b3bc17431e75a44634ee
MD5 c2e6ac3389c6772bc00c514032176bfe
BLAKE2b-256 c77c9eab0c7e401b168a9362684cc6db743090b3d2338a041db0536c53ebdfe3

See more details on using hashes here.

File details

Details for the file pytest_drop_dup_tests-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_drop_dup_tests-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48762b0b2abd40fb3d4ec2771fdaf007c7514d6355e4f9ff045a865b709a971a
MD5 9c7ad01adaecf94560e207035ef2ed86
BLAKE2b-256 ccb6500a6a6f211685de8836c3388750c242158bbbdd5044f152a6186855c4cc

See more details on using hashes here.

Supported by

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