QA/Test Automation

[unittest] Python unittest를 htmlTestrunner로 할 때 줄 바꿈 이슈 해결

화뉘 2021. 3. 23. 18:27

참고 : github.com/seounghun-chung/PyTestToolPlatform/blob/master/libs/HtmlTestRunner/template/report_template.html

해당 파일을 받아서

runner = HtmlTestRunner.HTMLTestRunner(report_title='TEST RESULT', output="ReportTest", template='template.html')

위처럼 template 설정을 해주면 기존 htmlTestrunner 줄바꿈 안되는 현상을 해결할 수 있다.