• tox 探究


      tox 是新的openStack项目的 单元测试工具,用来替代 runtests.sh

     1、下载安装 tox

     2、tox使用openstack中的tox.ini

     3、构建一个虚拟环境virtual辅助开发

    tornado 下的tox运行示例:

     1 XXXdembpr:tornado xyz$ tox -e py36
     2 GLOB sdist-make: /Users/sz/PycharmProjects/tornado/setup.py
     3 py36 inst-nodeps: /Users/sz/PycharmProjects/tornado/.tox/dist/tornado-5.0.dev1.zip
     4 py36 installed: tornado==5.0.dev1
     5 py36 runtests: PYTHONHASHSEED='1564852346'
     6 py36 runtests: commands[0] | python -bb -m tornado.test.runtests
     7 ..........................................................................ssssssssssssssssssssssssssssssssss...........................................................................................................................................................................................................................................................................................s.............................s.........................................................................................................................................................................................ss........ssss....................................................................................................s...............................................................................................................................................................................s.............................ssssssssssssss.........s.............................................................s.....................................................................................................................................................................s...................................s..........................................................................................................................s........................................................................................
     8 ----------------------------------------------------------------------
     9 Ran 1426 tests in 21.505s
    10 
    11 OK (skipped=63)
    12 Some tests were skipped because: AsyncIOMainLoop shutdown not thread
    13 safe, curl client accepts invalid headers, needs fix, no testable
    14 future imports, non-windows platform, pycares module not present,
    15 pycurl module not present, twisted module not present
    16 [I 171025 15:23:34 testing:679] PASS
    17 ________________________________________________________________________ summary ________________________________________________________________________
    18   py36: commands succeeded
    19   congratulations :)
    View Code

     参考:openstack 单元测试助手tox

  • 相关阅读:
    状压DP【p1879】[USACO06NOV]玉米田Corn Fields
    Tarjan缩点+Spfa最长路【p3627】[APIO2009] 抢掠计划
    Tarjan缩点【p1726】上白泽慧音
    分层图【p4822】[BJWC2012]冻结
    Tarjan缩点+LCA【p2783】有机化学之神偶尔会做作弊
    线段树【p1607】[USACO09FEB]庙会班车Fair Shuttle
    better-scroll踩坑合集
    在浏览器上安装 Vue Devtools工具
    无法执行vue初始化命令
    vue-cli创建第一个项目(用git bash解决上下键移动选择问题)
  • 原文地址:https://www.cnblogs.com/mxh1099/p/7728000.html
Copyright © 2020-2023  润新知