import unittest
from BSTestRunner import BSTestRunner
from HTMLTestRunner import HTMLTestRunner
class A(unittest.TestCase):
def test_case(self):
self.assertTrue(1)
def test_case_02(self):
self.assertTrue(0)
if __name__ == '__main__':
suite = unittest.makeSuite(A)
f = open('report.html', 'wb')
f1 = open('report1.html', 'wb')
BSTestRunner(stream=f, title='xx', description='xx00不可描述', verbosity=3).run(suite)
suite = unittest.makeSuite(A)
HTMLTestRunner(stream=f1, title='xx', description='xx00不可描述', verbosity=3).run(suite)
f.close()
f1.close()