All Projects → pytest-dev → pytest-stress

pytest-dev / pytest-stress

Licence: MIT license
A Pytest plugin that allows you to loop tests for a user defined amount of time.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pytest-stress

codec
Encode keys, values and range options, with built-in or custom encodings.
Stars: ✭ 27 (-30.77%)
Mutual labels:  utility
pytest-dependency
Manage dependencies of tests
Stars: ✭ 113 (+189.74%)
Mutual labels:  pytest-plugin
as-a
Runs a given command with additional environment settings for simple local development
Stars: ✭ 60 (+53.85%)
Mutual labels:  utility
sora
A simple library to display images in Jupyter notebooks
Stars: ✭ 15 (-61.54%)
Mutual labels:  utility
pytest-involve
A pytest plugin to run tests pertaining to a specific file or changeset
Stars: ✭ 28 (-28.21%)
Mutual labels:  pytest-plugin
actlist
📦 Actlist is a utility platform to execute your own action list easily and simply.
Stars: ✭ 85 (+117.95%)
Mutual labels:  utility
react-pendulum
A React Context utility library.
Stars: ✭ 15 (-61.54%)
Mutual labels:  utility
sortr.py
sort files using python
Stars: ✭ 15 (-61.54%)
Mutual labels:  utility
kubernetes-basico
Demonstração dos componentes do Kubernetes
Stars: ✭ 26 (-33.33%)
Mutual labels:  utility
BlauBot
A discord bot providing a collection of useful and unrelated commands
Stars: ✭ 16 (-58.97%)
Mutual labels:  utility
fhash
fHash - an open source files hash calculator for Windows and macOS
Stars: ✭ 222 (+469.23%)
Mutual labels:  utility
ee-x
Cross-platform library for Cocos2d-x and Unity
Stars: ✭ 13 (-66.67%)
Mutual labels:  utility
sublimetext-autobackups
Sublime Text 2/3 Auto backups plugin
Stars: ✭ 70 (+79.49%)
Mutual labels:  utility
lambda
Minecraft utility mod coded in Kotlin
Stars: ✭ 389 (+897.44%)
Mutual labels:  utility
RunDLL-NG
A better alternative to RunDLL32
Stars: ✭ 23 (-41.03%)
Mutual labels:  utility
calculate-aspect-ratio
📐 A simple utility function, and command line utility, for calculating an aspect ratio based on width and height.
Stars: ✭ 43 (+10.26%)
Mutual labels:  utility
autocommand
Autocommand turns a python function into a CLI program
Stars: ✭ 44 (+12.82%)
Mutual labels:  utility
emma.css
🍴 Emma.css { utility-classes: emmet-like; }
Stars: ✭ 53 (+35.9%)
Mutual labels:  utility
Tyval
Fast and extensible validator for JavaScript
Stars: ✭ 62 (+58.97%)
Mutual labels:  utility
AjaxHandler
ASimple PHP Class to help handling Ajax Requests easily
Stars: ✭ 30 (-23.08%)
Mutual labels:  utility

Pytest-stress

See Build Status on GitHub Actions PyPI version Python versions

A plugin that allows you to loop tests for a user-defined amount of time.

Requirements

Only tested with Pytest version 5.2.2.

Installation

You can install "pytest-stress" via pip from PyPI (highly recommend installing in a Pipenv):

$ pip3 install pytest-stress

Usage

Loop tests for 30 seconds:

$ pytest --seconds 30

Loop tests for 45 minutes:

$ pytest --minutes 45

Loop tests for 8 hours:

$ pytest --hours 8

Loop tests for 1 hour 8 minutes and 9 seconds:

$ pytest --hours 1 --minutes 8 --seconds 9

Need to wait some time after each test loop? Don't say I don't love you:

$ pytest --delay 5 --hours 4 --minutes 30

You can also add these values to config files:

[pytest]
addopts = --hours 1 --minutes 30

Note: These loop times include setup and teardown operations as well. So if you have a test setup that takes 5 seconds, your actual tests will run for 5 seconds less than your desired time.

Contributing

Contributions are very welcome! Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the MIT license, "pytest-stress" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.


This pytest plugin was generated with Cookiecutter along with @hackebrot's cookiecutter-pytest-plugin template.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].