A Pytest plugin to drop duplicated tests during collection
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.
- Python 2.7 or 3.5+
- pytest >= 2.7
The plugin is enabled by default, no other action is necessary.
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.
Distributed under the terms of the MIT license, “pytest-drop-dup-tests” is free and open source software
If you encounter any problems, please file an issue along with a detailed description.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pytest_drop_dup_tests-0.3.0-py2.py3-none-any.whl (3.9 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
|Filename, size pytest-drop-dup-tests-0.3.0.tar.gz (5.3 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for pytest_drop_dup_tests-0.3.0-py2.py3-none-any.whl
Hashes for pytest-drop-dup-tests-0.3.0.tar.gz