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.


# 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 hashes)

Uploaded source

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