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)