HtmlTestRunner icon indicating copy to clipboard operation
HtmlTestRunner copied to clipboard

OSError [Errno 36] File name too long

Open pirelle opened this issue 5 years ago • 1 comments

We are getting too long filename here https://github.com/oldani/HtmlTestRunner/blob/86c173982511ff74ab2173864bb0b967bb915f6f/HtmlTestRunner/result.py#L403

pirelle avatar Oct 03 '19 09:10 pirelle

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")

nav347 avatar Mar 31 '20 18:03 nav347