HtmlTestRunner
HtmlTestRunner copied to clipboard
OSError [Errno 36] File name too long
We are getting too long filename here https://github.com/oldani/HtmlTestRunner/blob/86c173982511ff74ab2173864bb0b967bb915f6f/HtmlTestRunner/result.py#L403
This is because the file names get created as a string of all the tests that ran. I fixed this by giving the file a custom name. I still get the date and time which is good.
Add the report_name argument when creating the runner runner = HtmlTestRunner.HTMLTestRunner(report_name="Latest_Test_Reports")