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.3.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

pytest_group_by_class-0.1.3-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest-group-by-class-0.1.3.tar.gz
  • Upload date:
  • Size: 2.8 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.3.tar.gz
Algorithm Hash digest
SHA256 17184028328d5ff44d71c13200a68d5d3cbb7dc295354ec644e9a912e75d928a
MD5 e9157ac5cbb0677487878461434e42c5
BLAKE2b-256 3d63aa025efb2f9dc8354ccb2becae83f40060f3eb9ae85a70549b7a27b3c932

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_group_by_class-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dcfe257a3699223e5505edf4c2005b1950e541f4bc2c03791ff623c3256b3ac4
MD5 b3f79e07b635d0d212cb5dbb88aa12c2
BLAKE2b-256 31117c1930f5553712f0f41fc8c19c1b86fefa686d00603283765db4befbfc96

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