Skip to content

Based on unittest create a runner for stress, which support iterative exection, html report, send html report, etc.

License

Notifications You must be signed in to change notification settings

txu2k8/test-runner-stress

Repository files navigation

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.'
)

About

Based on unittest create a runner for stress, which support iterative exection, html report, send html report, etc.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published