I have a similar issue I have three one test suite with three different classes which contains several test cases each of these classes. One Test Suite is exported to the HTML report:
'''
login_test.Login # Class with Login test cases ,register_test,sign_on_test
page_without_func_test.PageWithoutFuncTest # Class with other test cases
and the list goes on
'''
login_test_loader = unittest.TestLoader().loadTestsFromTestCase(login_test.Login)
sign_on_test_loader = unittest.TestLoader().loadTestsFromTestCase(sign_on_test.SignOn)
without_funct_loader = unittest.TestLoader().loadTestsFromTestCase(page_without_func_test.PageWithoutFuncTest)
register_test_loader = unittest.TestLoader().loadTestsFromTestCase(register_test.RegisterTest)
all_tests_suite = unittest.TestSuite([login_test_loader,sign_on_test_loader,without_funct_loader,register_test_loader])
kwargs_all = {
"output": cfg.report_path,
"report_name": "all_test_report_new",
"failfast": False
}
runner_all = HTMLTestRunner(**kwargs_all)
runner_all.run(all_tests_suite)