怎么生成报告:需要导入BeautifulReport
import BeautifulReport as bf
import unittest
class Test_login(unittest.TestCase):
def test_login(self):
'''测试登录'''
self.assertEqual('1','1')
runner=bf.BeautifulReport(unittest.makeSuite(Test_login))
runner.report(description='登录的测试报告',filename='login.html')