首页 > 编程语言 > 详细

Python Unit Test Report

时间:2019-02-23 10:05:24      阅读:149      评论:0      收藏:0      [点我收藏+]

1.Download HTMLTestRunner.py ,add it directly into your working directory as a module (if use python3, need some adjustment )
2.Create our unit test files structures( example for learning)

  Test suites -> testcase1->test11.py,test12.py ...

  Test suites -> testcase2->test21.py,test22.py ...

3.Use unittest.defaultTestLoader.discover to load test suites ( can also use other load method ,depend on the test suites structues )

 

技术分享图片

report :

技术分享图片



Python Unit Test Report

原文:https://www.cnblogs.com/cometous/p/10405814.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!