You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP

stressrunner

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stressrunner

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

1.1.13
Maintainers
1

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts