Skip to content

Commit

Permalink
v1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
txu2k8 committed Nov 18, 2020
1 parent c6bb7b1 commit d0aa573
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,21 @@
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
```shell script
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.
```python
import unittest
from stressrunner import StressRunner
from stressrunner import runner
# define your tests

if __name__ == '__main__':
StressRunner.main()
runner.main()
```
For more customization options, instantiates a StressRunner object.
StressRunner is a counterpart to unittest's TextTestRunner. E.g.
Expand All @@ -23,5 +27,6 @@ from stressrunner import StressRunner
runner = StressRunner(
report_path='./report/test.html',
test_title='My unit test',
desc='This demonstrates the report output by StressRunner.')
desc='This demonstrates the report output by StressRunner.'
)
```
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ coloredlogs==14.0
docutils==0.16
humanfriendly==8.2
idna==2.10
keyring==21.5.0
packaging==20.4
pkginfo==1.6.1
Pygments==2.7.2
Expand All @@ -19,6 +18,5 @@ requests-toolbelt==0.9.1
rfc3986==1.4.0
six==1.15.0
tqdm==4.52.0
twine==3.2.0
urllib3==1.26.2
webencodings==0.5.1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _find_packages():
setup(
name='stressrunner',
python_requires='>=3.4.0',
version='1.0.3',
version='1.0.4',
description="A stressrunner similar as TextTestRunner for stress test, support for html report.",
long_description=read_file('README.md'),
long_description_content_type="text/markdown",
Expand Down
16 changes: 7 additions & 9 deletions stressrunner/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,17 @@
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.
import unittest
import StressRunner
... define your tests ...
from stressrunner import runner
if __name__ == '__main__':
StressRunner.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
stressrunner = StressRunner.StressRunner(
report_path='./report/',
test_title='My unit test',
desc='This demonstrates the report output by StressRunner.'
)
runner = StressRunner.StressRunner(
report_path='./report/',
test_title='My unit test',
desc='This demonstrates the report output by StressRunner.'
)
"""

import logging
Expand Down

0 comments on commit d0aa573

Please sign in to comment.