- HtmlTestRunner version: 1.2
- Python version: 2.7
- Operating System: Windows 10
When a HTML test report is being saved, it always adds the classname and __main___ to the filename, such as test___main__.ExportTest_2019-04-01_17-32-43.html
Is it possible to remove the unwanted ___main__.ExportTest_ part?
In my script I use this
if __name__ == '__main__': unittest.main(testRunner=HtmlTestRunner.HTMLTestRunner(report_name="test"))
I'm calling my python script from command line using
python -m export_results_test
When a HTML test report is being saved, it always adds the classname and
__main___to the filename, such astest___main__.ExportTest_2019-04-01_17-32-43.htmlIs it possible to remove the unwanted
___main__.ExportTest_part?In my script I use this
if __name__ == '__main__': unittest.main(testRunner=HtmlTestRunner.HTMLTestRunner(report_name="test"))I'm calling my python script from command line using
python -m export_results_test