import unittest
import time
import HTMLTestRunner
# from ddt import ddt,data,unpack
from lemonclass.class_1010 import TestMath

suite=unittest.TestSuite()
suite.addTest(TestMath('test_sum'))
suite.addTest(TestMath('test_sub'))
now = time.strftime('%Y-%m-%d_%H_%M_%S')
#执行测试集合
filePath = "pyResult"+now+".html"
fp = open(filePath,'wb')

#生成报告的Title,描述
runner = HTMLTestRunner.HTMLTestRunner(stream=fp,title='Python Test Report',description='This  is Python  Report')
runner.run(suite)



c0b5db02684b96819501d3e1ed259a3e12206b3c
<mask token>

<mask token>
suite.addTest(TestMath('test_sum'))
suite.addTest(TestMath('test_sub'))
<mask token>
runner.run(suite)

<mask token>
suite = unittest.TestSuite()
suite.addTest(TestMath('test_sum'))
suite.addTest(TestMath('test_sub'))
now = time.strftime('%Y-%m-%d_%H_%M_%S')
filePath = 'pyResult' + now + '.html'
fp = open(filePath, 'wb')
runner = HTMLTestRunner.HTMLTestRunner(stream=fp, title=
    'Python Test Report', description='This  is Python  Report')
runner.run(suite)

import unittest
import time
import HTMLTestRunner
from lemonclass.class_1010 import TestMath
suite = unittest.TestSuite()
suite.addTest(TestMath('test_sum'))
suite.addTest(TestMath('test_sub'))
now = time.strftime('%Y-%m-%d_%H_%M_%S')
filePath = 'pyResult' + now + '.html'
fp = open(filePath, 'wb')
runner = HTMLTestRunner.HTMLTestRunner(stream=fp, title=
    'Python Test Report', description='This  is Python  Report')
runner.run(suite)

import unittest
import time
import HTMLTestRunner
# from ddt import ddt,data,unpack
from lemonclass.class_1010 import TestMath

suite=unittest.TestSuite()
suite.addTest(TestMath('test_sum'))
suite.addTest(TestMath('test_sub'))
now = time.strftime('%Y-%m-%d_%H_%M_%S')
#执行测试集合
filePath = "pyResult"+now+".html"
fp = open(filePath,'wb')

#生成报告的Title,描述
runner = HTMLTestRunner.HTMLTestRunner(stream=fp,title='Python Test Report',description='This  is Python  Report')
runner.run(suite)


