Skip to main content

Python3 Unittest Runner -- HTMLTestRunner

Project description

jd-HTMLTestRunner

jd-HTMLTestRunner for Python3 unittest

PyPI version PyPI version PyPI version

安装

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jd_HTMLTestRunner-1.7.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

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

Hashes for jd-HTMLTestRunner-1.7.0.tar.gz
Algorithm Hash digest
SHA256 243138778e10af9763f0d77c497630736afcfdbc32b75b2f9d4c09034fa3d37f
MD5 2d35c3a9f4a4e79e674873deaba24384
BLAKE2b-256 ccea3ffbfb42269d76bcbdfe5dd362b780fff5eae303991db6155cc91bbedaa5

See more details on using hashes here.

File details

Details for the file jd_HTMLTestRunner-1.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jd_HTMLTestRunner-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 680c0c62f496f960dfacb6bbd77a0b1603b80e867cd8fdd3dce5b433f2b26a4d
MD5 946d1e1642de057c2b5e5314bf1ea22a
BLAKE2b-256 21a2d966c8fa311453e37af23e2fbe77926d19016f520a67b338f48a89de6b57

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page