def nrun(): report = (‘report_‘ + (‘%s‘) % time.strftime("%Y-%m-%d-%H-%M-%S", time.localtime()) + ‘.html‘).replace(‘\\‘, ‘/‘) suite = unittest.defaultTestLoader.discover(CASE_DIR, "*case.py") result = BeautifulReport(suite) result.report(description=‘测试报告‘, filename=report, log_path =REPORT_DIR)
原文地址:https://www.cnblogs.com/jinbaobao/p/12028891.html
时间: 2024-10-27 10:41:33