Skip to main content

Python3 Unittest Runner -- HTMLTestRunner

Project description

jd-tools

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.0.0.tar.gz (10.6 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.0.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

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

Hashes for jd-HTMLTestRunner-1.0.0.tar.gz
Algorithm Hash digest
SHA256 394991215af69c691fb6527afa6ed028d88f8b61890f33a84ee8e2c3123a4397
MD5 4e0e9d5302d6e372c1894f96aba4a0a0
BLAKE2b-256 cc986fc80bb46c8623adfe0dcfcc732cd862e42be4633eda32778347fb0e9a6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jd_HTMLTestRunner-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47ab5cc0d7ef8aa10cd35fe18df330170d30c49d8fe8d2a86e1a7a23c4429dd6
MD5 b07a947cadb52995a9f6ad3a6a744d23
BLAKE2b-256 3cbe58becd616f046103a072643d0dfaed4916f744cca28653051f89d5339a9a

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