Skip to main content

A Pytest plugin to drop duplicated tests during collection, but will prefer keeping nested packages.

Project description

by Marximus Maximus (https://www.marximus.com)

http://img.shields.io/pypi/v/pytest-prefer-nested-dup-tests.svg https://github.com/MarximusMaximus/pytest-prefer-nested-dup-tests/workflows/main/badge.svg

A Pytest plugin to drop duplicated tests during collection, but will prefer keeping nested packages.

By default, when de-duplicating tests, all sub-packages become top level packages. This plugin keeps the subpackage structure intact.

Installation

You can install via pip from PyPI:

$ pip install pytest-prefer-nested-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-prefer-nested-dup-tests” is free and open source software.

Issues

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

Like My Work & Want To Support It?

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

Built Distribution

Supported by

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