Skip to main content

Pytest plugin for selecting tests by GitHub CODEOWNERS.

Project description

pytest-codeowners

Pytest plugin for selecting tests by GitHub CODEOWNERS.

Quickstart

Install with:

pip install pytest-codeowners

Usage

Like so:

pytest --codeowners-file docs/CODEOWNERS \
  --codeowners-owner @org/team-name \
  --codeowners-owner my@email.com \
  --codeowners-owner @MyUsername

Building

To build this library as a wheel:

python setup.py bdist_wheel --universal

Testing

First, make sure you install the package:

python setup.py install

To run all tests, simply do:

pytest

Legal

Copyright 2022 IRESS Ltd.

License: Apache License 2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

pytest_codeowners-0.1.1-py3.8.egg (4.6 kB view hashes)

Uploaded Source

pytest_codeowners-0.1.1-py2.py3-none-any.whl (7.7 kB view hashes)

Uploaded Python 2 Python 3

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