Skip to main content

A Pytest plugin for running a subset of your tests by splitting them in to groups of classes.

Project description

Welcome to pytest-group-by-class!

pytest-group-by-class allows you to split your test runs into groups of tests that belongs to the same class to make it easier to split up your test runs.

Usage

# Install pytest-group-by-class
pip install pytest-group-by-class

# Split the tests into groups based on class and run the second group
py.test --test-group-class --test-group-class-id 2

# Split the tests into groups based on class and run the tests belonging ot class NameOfTheClassToBeExecuted
py.test --test-group-class --test-group-class-name NameOfTheClassToBeExecuted

Why would I use this?

Sometimes you may have some long running test jobs that take a while to complete. This can be a major headache when trying to run tests quickly. pytest-group-by-class allows you to easily say "split my tests into groups of classes and run the second group". This is primarily useful in the context of CI builds.

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-group-by-class-0.1.5.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

pytest_group_by_class-0.1.5-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file pytest-group-by-class-0.1.5.tar.gz.

File metadata

  • Download URL: pytest-group-by-class-0.1.5.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for pytest-group-by-class-0.1.5.tar.gz
Algorithm Hash digest
SHA256 11057a575081c87a5290af69dba0e52b660fe40015565ccdeca5722e401d3aa9
MD5 9b6e8921d808501efa50ee9a7152672d
BLAKE2b-256 dc6b7decedfe8a831081fd019ce127330a060d18c7636b190b24444adf35cde6

See more details on using hashes here.

File details

Details for the file pytest_group_by_class-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_group_by_class-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0b3592283cbcdf04823515cc6b9ea78f84b77f6d4779ff87b3f7b236d4028523
MD5 1ad8abb849e62bde387fe5a9e116f686
BLAKE2b-256 ef84154bebaa2b24f86730bcd79df39827b1ee2e05e3c8e8aba5d46edca14800

See more details on using hashes here.

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