oldani / HtmlTestRunner

A Test Runner in python, for Human Readable HTML Reports
MIT License
295 stars 171 forks source link

OSError [Errno 36] File name too long #58

Open pirelle opened 5 years ago

pirelle commented 5 years ago

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

nav347 commented 4 years ago

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