unittest框架学习笔记二之discover

 coding=utf-8
'''Created on 2018/3/29
author:star
Project:discover测试用例'''
import unittest,time,os
list="C:\Users\Administrator\PycharmProjects\untitled"
discover=unittest.defaultTestLoader.discover(list,pattern="test_*.py",top_level_dir=None)
runner=unittest.TextTestRunner()
runner.run(discover)
posted @ 2018-03-29 13:01  知识在于点滴的积累  阅读(213)  评论(0编辑  收藏  举报