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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pytest-group-by-class-0.1.4.tar.gz
.
File metadata
- Download URL: pytest-group-by-class-0.1.4.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2afe0abbeba105b1e11a329fcd3b26fc1d9170792f68deebd1eebd2bd38a8a9 |
|
MD5 | 6a2d95a17e3c3d27e5f851851a0553ac |
|
BLAKE2b-256 | b6e5b29af76b65aa0414ae810867b52b173f8f05a63dc31c6d6b3fbd3967aada |
File details
Details for the file pytest_group_by_class-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: pytest_group_by_class-0.1.4-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 704a26c82f8c858c4daf8f391857d250bd21050fe1eef76f998746081962cc9a |
|
MD5 | a98c6daa9ab765271971d3a58194a70c |
|
BLAKE2b-256 | 30b5f05d7baa5271cf042ee7e03b039a2b51e8d73736d8f5b0daf5bd0b015bfd |