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 https://github.com/nicoddemus/pytest-drop-dup-tests/workflows/main/badge.svg

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.5+

  • pytest >= 2.7

Installation

You can install 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.3.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

pytest_drop_dup_tests-0.3.0-py2.py3-none-any.whl (3.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pytest-drop-dup-tests-0.3.0.tar.gz.

File metadata

  • Download URL: pytest-drop-dup-tests-0.3.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for pytest-drop-dup-tests-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6ef9b3dd19171136b1b5e970a3d80593ccbc51e3684b1b72f1054a16656bc563
MD5 fb1072614d6904656a73722b0fe29bec
BLAKE2b-256 154253771c61ba95b6a46bcdcda9db414740e75ff2a2682f0e77b54abd0447d9

See more details on using hashes here.

File details

Details for the file pytest_drop_dup_tests-0.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: pytest_drop_dup_tests-0.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for pytest_drop_dup_tests-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 370fb82653ca6d449db04bfa8a6947d691e733031a6b1c49aa9c5d9b5d082c14
MD5 20ea6441cda457f635b02cfec8b49666
BLAKE2b-256 4c432e16bea97676537868286d833a08e6a1808fbc345be899ca1637850f458b

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