Python3 Unittest Runner -- HTMLTestRunner
Project description
jd-tools
jd-HTMLTestRunner for Python3 unittest
安装
pip install jd-HTMLTestRunner
示例
from jd_HTMLTestRunner import HTMLTestRunner
suite = unittest.TestLoader().discover(".", "test_*.py")
file = open(r"test01.html", "wb")
runner = HTMLTestRunner(stream=file, title="我的测试报告")
runner.run(suite)
file.close()
模块内方法说明
| 函数、对象名称 | 类型 | 说明 |
|---|---|---|
| HTMLTestRunner | 对象 | 主测试执行对象 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jd-HTMLTestRunner-1.0.0.tar.gz
(10.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jd-HTMLTestRunner-1.0.0.tar.gz.
File metadata
- Download URL: jd-HTMLTestRunner-1.0.0.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
394991215af69c691fb6527afa6ed028d88f8b61890f33a84ee8e2c3123a4397
|
|
| MD5 |
4e0e9d5302d6e372c1894f96aba4a0a0
|
|
| BLAKE2b-256 |
cc986fc80bb46c8623adfe0dcfcc732cd862e42be4633eda32778347fb0e9a6c
|
File details
Details for the file jd_HTMLTestRunner-1.0.0-py3-none-any.whl.
File metadata
- Download URL: jd_HTMLTestRunner-1.0.0-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47ab5cc0d7ef8aa10cd35fe18df330170d30c49d8fe8d2a86e1a7a23c4429dd6
|
|
| MD5 |
b07a947cadb52995a9f6ad3a6a744d23
|
|
| BLAKE2b-256 |
3cbe58becd616f046103a072643d0dfaed4916f744cca28653051f89d5339a9a
|