I need to generate a test report using HTMLTestRunner ,for that code (which is placed at the end of the file) is:
suite = unittest.TestLoader().loadTestsFromTestCase(TestLoginPages)
outfile = open("/home/xxx/xxx/xxxx/report.html", "w")
runner = HTMLTestRunner.HTMLTestRunner(
stream=outfile,
title='Test Report',
description='Test report for the application')
runner.run(suite)
Then I run the test cases from pycharm ,all the tests are running twice. I have tried to 'Edit Configurations' in the 'Run' menu where I delete the 'unittest in my_file_name' configuration, but issue remains same