pytest-repeat is a plugin for py.test that makes it easy to repeat a single test, or multiple tests, a specific number of times.
Requirements
You will need the following prerequisites in order to use pytest-repeat:
Python 2.6, 2.7, 3.2, 3.3, 3.4 or PyPy
py.test 2.4 or newer
Installation
To install pytest-repeat:
pip install pytest-repeat
Repeating a test
Use the –count command line option to specify how many times you want your test, or tests, to be run:
py.test --count=10 test_file.py
Each test collected by py.test will be run count times.
Resources
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytest-repeat-0.1.tar.gz
(2.3 kB
view details)
File details
Details for the file pytest-repeat-0.1.tar.gz.
File metadata
- Download URL: pytest-repeat-0.1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1dfe7720d468a98ee89380c09a3b5707f7936ce47de71c90f521837962070e1
|
|
| MD5 |
637596737373354ebb120fb0df9182a1
|
|
| BLAKE2b-256 |
8b645213e139a0eaf954b27944a153272d4067176e11dd72cfd7442bd4ad2d66
|