#!/usr/bin/env python
#coding:utf-8
import unittest
from HTMLTestRunner import HTMLTestRunner

test_dir='./'
discover=unittest.defaultTestLoader.discover(test_dir,pattern="test_*.py")

if __name__=='__main__':
	fp=open("result.html","wb")
	runner =HTMLTestRunner(stream=fp,title='测试报告',description='测试用例执行报告')
	runner.run(discover)
	fp.close()
