Skip to main content

A stressrunner similar as TextTestRunner for stress test, support for html report.

Project description

stress-runner

A runner similar as TextTestRunner for stress test, support for html report. Based on unittest, support iterative exection, html report, send html report, etc.

Install

pip install stressrunner -U

Quick Start:

A TestRunner for use with the Python unit testing framework. It generates a HTML report to show the result at a glance. The simplest way to use this is to invoke its main method. E.g.

from stressrunner import runner
# define your tests

if __name__ == '__main__':
    runner.main()

For more customization options, instantiates a StressRunner object. StressRunner is a counterpart to unittest's TextTestRunner. E.g.

# output to a file
from stressrunner import StressRunner

runner = StressRunner(
    report_path='./report/test.html',
    test_title='My unit test',
    desc='This demonstrates the report output by StressRunner.'
)

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

stressrunner-1.1.13.tar.gz (18.5 kB view hashes)

Uploaded Source

Built Distribution

stressrunner-1.1.13-py2.py3-none-any.whl (17.9 kB view hashes)

Uploaded Python 2 Python 3

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