Skip to content

This is a unittest's demo file developed by python.

Notifications You must be signed in to change notification settings

hongcyu/unittest_api_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unittest_api_demo

项目框架

image-20201025222533960

tree:

效果图

v1.1

  1. 添加自动识别行列属性

  2. report的views不能点击:

    打开\Lib\site-packages\HtmlTestRunner\template\report_template.html
    修改地址换成国内能连的地址:
    比如:http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js
    

  3. report不能显示中文:

    修改\Lib\site-packages\HtmlTestRunner\result.py下的generate_file
    加上encoding='utf-8'
    

v1.0

  1. 引入了单元测试、html测试报告以及断言结果
  2. 引入了ddt数据驱动
  3. 实现用例的可配置
  4. 实现路径的可配置

参考资料:

ddt官方文档:https://ddt.readthedocs.io/en/latest/

第三方模块:

  1. ddt
  2. openpyxl
  3. requests
  4. html-testRunner

About

This is a unittest's demo file developed by python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages