unittest HTMLTestRunner HTMLTestRunner time (unittest.TestCase): (): () (): () (): () (): () __name__ == : suite=unittest.TestSuite() suite.addTest(Test()) suite.addTest(Test()) now=time.strftime() filename=+ now +fp=(filename) runner = HTMLTestRunner(=fp= = ) runner.run(suite) fp.close()
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/186650.html