Python3 Unittest Runner -- HTMLTestRunner
Project description
jd-HTMLTestRunner
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.7.0.tar.gz
(13.2 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.7.0.tar.gz.
File metadata
- Download URL: jd-HTMLTestRunner-1.7.0.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
243138778e10af9763f0d77c497630736afcfdbc32b75b2f9d4c09034fa3d37f
|
|
| MD5 |
2d35c3a9f4a4e79e674873deaba24384
|
|
| BLAKE2b-256 |
ccea3ffbfb42269d76bcbdfe5dd362b780fff5eae303991db6155cc91bbedaa5
|
File details
Details for the file jd_HTMLTestRunner-1.7.0-py3-none-any.whl.
File metadata
- Download URL: jd_HTMLTestRunner-1.7.0-py3-none-any.whl
- Upload date:
- Size: 13.2 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 |
680c0c62f496f960dfacb6bbd77a0b1603b80e867cd8fdd3dce5b433f2b26a4d
|
|
| MD5 |
946d1e1642de057c2b5e5314bf1ea22a
|
|
| BLAKE2b-256 |
21a2d966c8fa311453e37af23e2fbe77926d19016f520a67b338f48a89de6b57
|