Skip to content

Report file names always contain Test Case (class) name and "__name__" as prefix #49

@Pvanderlaan89

Description

@Pvanderlaan89
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions