# unittestreport介绍
## 说明
本项目是在unittestreport的基础上增加了截图功能。在生成的最终的报告中可以看到截图,并支持多图切换。原项目地址:https://github.com/musen123/UnitTestReport
![sceen shot button](docs/img/screen-shot-1.png)
![view sceen shot](docs/img/screen-shot-2.png)
上传到pypi:
python setup.py sdist bdist_wheel
twine upload dist/*
修改setup.py文件,将版本号修改为最新的版本号
## 1、什么是unittestreport
unittestreport是基于unittest开发的的一个功能扩展库,关于unittestreport最初在开发的时候,最初只是计划开发一个unittest生成html测试报告的模块,所以起名叫做unittestreport。在开发的过程中结合使用者的反馈,慢慢的扩展了更多的功能进去。后续还会持续的扩展和开发一些新的功能,目前实现了以下功能:
- HTML测试报告生成
- unittest数据驱动
- 测试用例失败重运行
- 多线程并发执行用例
- 发送测试结果及报告到邮箱
- 测试结果推送到钉钉
- 测试结构推送到企业微信
## 2、安装unittestreport
unittestreport是基于python3.6开发的,安装前请确认你的python版本>3.6
- **安装命令**
`pip install unittestreport`
- 说明:原报告模板中的CDN站点失效了,已在`1.4.2`版中进行了更换,如果生成的报告样式和图表丢失,请升级unittestreport版本`pip install unittestreport==1.4.2`
## 3、使用文档
使用文档地址:https://unittestreport.readthedocs.io/en/latest/
### 使用问题及维护:
- ##### 开发者:木森
- ##### WeChat:musen9111
- ##### 大家在使用过程中发现bug,以及使用过程中有什么问题,可以联系我
Raw data
{
"_id": null,
"home_page": "https://github.com/EthanLiuInyami/UnitTestReport",
"name": "unittestreport-yami",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "Ethan",
"author_email": "ethan.liu@yamibuy.com",
"download_url": "https://files.pythonhosted.org/packages/7d/f6/2e03e606f7d1983bedcb2c42480d745b38005a58e8993d12032c4c33fa34/unittestreport_yami-0.1.41.tar.gz",
"platform": null,
"description": "# unittestreport\u4ecb\u7ecd\n\n## \u8bf4\u660e\n\u672c\u9879\u76ee\u662f\u5728unittestreport\u7684\u57fa\u7840\u4e0a\u589e\u52a0\u4e86\u622a\u56fe\u529f\u80fd\u3002\u5728\u751f\u6210\u7684\u6700\u7ec8\u7684\u62a5\u544a\u4e2d\u53ef\u4ee5\u770b\u5230\u622a\u56fe\uff0c\u5e76\u652f\u6301\u591a\u56fe\u5207\u6362\u3002\u539f\u9879\u76ee\u5730\u5740\uff1ahttps://github.com/musen123/UnitTestReport\n![sceen shot button](docs/img/screen-shot-1.png)\n![view sceen shot](docs/img/screen-shot-2.png)\n\n\u4e0a\u4f20\u5230pypi:\n\npython setup.py sdist bdist_wheel\n\ntwine upload dist/*\n\n\u4fee\u6539setup.py\u6587\u4ef6\uff0c\u5c06\u7248\u672c\u53f7\u4fee\u6539\u4e3a\u6700\u65b0\u7684\u7248\u672c\u53f7\n\n## 1\u3001\u4ec0\u4e48\u662funittestreport\nunittestreport\u662f\u57fa\u4e8eunittest\u5f00\u53d1\u7684\u7684\u4e00\u4e2a\u529f\u80fd\u6269\u5c55\u5e93\uff0c\u5173\u4e8eunittestreport\u6700\u521d\u5728\u5f00\u53d1\u7684\u65f6\u5019\uff0c\u6700\u521d\u53ea\u662f\u8ba1\u5212\u5f00\u53d1\u4e00\u4e2aunittest\u751f\u6210html\u6d4b\u8bd5\u62a5\u544a\u7684\u6a21\u5757\uff0c\u6240\u4ee5\u8d77\u540d\u53eb\u505aunittestreport\u3002\u5728\u5f00\u53d1\u7684\u8fc7\u7a0b\u4e2d\u7ed3\u5408\u4f7f\u7528\u8005\u7684\u53cd\u9988\uff0c\u6162\u6162\u7684\u6269\u5c55\u4e86\u66f4\u591a\u7684\u529f\u80fd\u8fdb\u53bb\u3002\u540e\u7eed\u8fd8\u4f1a\u6301\u7eed\u7684\u6269\u5c55\u548c\u5f00\u53d1\u4e00\u4e9b\u65b0\u7684\u529f\u80fd\uff0c\u76ee\u524d\u5b9e\u73b0\u4e86\u4ee5\u4e0b\u529f\u80fd\uff1a\n\n- HTML\u6d4b\u8bd5\u62a5\u544a\u751f\u6210\n- unittest\u6570\u636e\u9a71\u52a8\n- \u6d4b\u8bd5\u7528\u4f8b\u5931\u8d25\u91cd\u8fd0\u884c\n- \u591a\u7ebf\u7a0b\u5e76\u53d1\u6267\u884c\u7528\u4f8b\n- \u53d1\u9001\u6d4b\u8bd5\u7ed3\u679c\u53ca\u62a5\u544a\u5230\u90ae\u7bb1\n- \u6d4b\u8bd5\u7ed3\u679c\u63a8\u9001\u5230\u9489\u9489\n- \u6d4b\u8bd5\u7ed3\u6784\u63a8\u9001\u5230\u4f01\u4e1a\u5fae\u4fe1\n\n## 2\u3001\u5b89\u88c5unittestreport\n\nunittestreport\u662f\u57fa\u4e8epython3.6\u5f00\u53d1\u7684\uff0c\u5b89\u88c5\u524d\u8bf7\u786e\u8ba4\u4f60\u7684python\u7248\u672c>3.6\n\n- **\u5b89\u88c5\u547d\u4ee4**\n\n `pip install unittestreport`\n- \u8bf4\u660e\uff1a\u539f\u62a5\u544a\u6a21\u677f\u4e2d\u7684CDN\u7ad9\u70b9\u5931\u6548\u4e86\uff0c\u5df2\u5728`1.4.2`\u7248\u4e2d\u8fdb\u884c\u4e86\u66f4\u6362\uff0c\u5982\u679c\u751f\u6210\u7684\u62a5\u544a\u6837\u5f0f\u548c\u56fe\u8868\u4e22\u5931\uff0c\u8bf7\u5347\u7ea7unittestreport\u7248\u672c`pip install unittestreport==1.4.2`\n\n\n\n## 3\u3001\u4f7f\u7528\u6587\u6863\n\n\u4f7f\u7528\u6587\u6863\u5730\u5740\uff1ahttps://unittestreport.readthedocs.io/en/latest/\n\n\n\n### \u4f7f\u7528\u95ee\u9898\u53ca\u7ef4\u62a4\uff1a\n\n- ##### \u5f00\u53d1\u8005\uff1a\u6728\u68ee\n\n- ##### WeChat:musen9111\n\n- ##### \u5927\u5bb6\u5728\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u53d1\u73b0bug,\u4ee5\u53ca\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u6709\u4ec0\u4e48\u95ee\u9898\uff0c\u53ef\u4ee5\u8054\u7cfb\u6211\n\n\n\n\n\n\n\n\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": null,
"version": "0.1.41",
"project_urls": {
"Homepage": "https://github.com/EthanLiuInyami/UnitTestReport"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "daff73acdb669e31b4aca944b2abd002288a6fd5bd9f776f9f7b7298174a827e",
"md5": "2509495a3b1bcad85bb38ff0ad6021eb",
"sha256": "5c48c788326597877cf97e10cbc4aeef0aafef896ccfb5b8b88269c7d7ecded3"
},
"downloads": -1,
"filename": "unittestreport_yami-0.1.41-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2509495a3b1bcad85bb38ff0ad6021eb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 61238,
"upload_time": "2024-12-20T04:40:51",
"upload_time_iso_8601": "2024-12-20T04:40:51.988932Z",
"url": "https://files.pythonhosted.org/packages/da/ff/73acdb669e31b4aca944b2abd002288a6fd5bd9f776f9f7b7298174a827e/unittestreport_yami-0.1.41-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7df62e03e606f7d1983bedcb2c42480d745b38005a58e8993d12032c4c33fa34",
"md5": "beeb65e99a6499300ac919cbba6db660",
"sha256": "009528f0b34bfe2b90a8eaa5e7b2668a866a8d10fe79a3bd06eca9669a846094"
},
"downloads": -1,
"filename": "unittestreport_yami-0.1.41.tar.gz",
"has_sig": false,
"md5_digest": "beeb65e99a6499300ac919cbba6db660",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 54657,
"upload_time": "2024-12-20T04:40:55",
"upload_time_iso_8601": "2024-12-20T04:40:55.828818Z",
"url": "https://files.pythonhosted.org/packages/7d/f6/2e03e606f7d1983bedcb2c42480d745b38005a58e8993d12032c4c33fa34/unittestreport_yami-0.1.41.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-20 04:40:55",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "EthanLiuInyami",
"github_project": "UnitTestReport",
"github_not_found": true,
"lcname": "unittestreport-yami"
}