Skip to main content

Automatically skip tests that don't need to run!

Project description

https://img.shields.io/pypi/v/pytest-skippy.svg https://readthedocs.org/projects/pytest-skippy/badge/?version=latest https://travis-ci.org/a-feld/pytest-skippy.svg?branch=master https://ci.appveyor.com/api/projects/status/github/a-feld/pytest-skippy?svg=true https://codecov.io/gh/a-feld/pytest-skippy/branch/master/graph/badge.svg

pytest skippy

Automatically skip tests that don’t need to run!

Most tests that are run on a pull request don’t actually exercise the changes that are made. By running all tests (even if those tests are not relevant), the test suite takes longer to complete and more machines may be needed to parallelize tests to cut down on test time.

pytest-skippy detects which tests don’t need to run by generating a complete import graph for your tests. If nothing in the import graph has changed (according to GIT), the test is skipped! This approach saves time (getting you test results faster) and money (using less machines for parallel builds)!

Installation

pip install pytest-skippy

Usage

Add the --skippy option to your pytest command.

To specify a target branch, use the --skippy-target-branch option.

Example:

py.test --skippy --skippy-target-branch origin/master

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-skippy-0.1.1.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

pytest_skippy-0.1.1-py2.py3-none-any.whl (13.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pytest-skippy-0.1.1.tar.gz.

File metadata

  • Download URL: pytest-skippy-0.1.1.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pytest-skippy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 98e4a0355e9b6dde61758129b2b0243736d56bf1ac71aa350b80c83632baff20
MD5 6484ff4878967f3272bad03731288049
BLAKE2b-256 80ea59c5109eebfff31849d277fe35f6dbac181be56ad42d87262ca1dfc65650

See more details on using hashes here.

File details

Details for the file pytest_skippy-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_skippy-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 24eb41ea38266afead63ac7e64026aa911c60cdadace465439be487577166abb
MD5 5025fb0de5bd7e0c6d1734923a914341
BLAKE2b-256 4820aa4b53611c231c4914cb0fb7c9a6da3c130c442b965e080cbbcbb1a9f8e3

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