def _new_testcase_report(self, testcase): """ :return: A new and empty report for a testcase. """ return testplan.report.TestCaseReport( name=testcase.__name__, description=strings.get_docstring(testcase), uid=testcase.__name__, tags=testcase.__tags__, )
def _new_testsuite_report(self, testsuite): """ :return: A new and empty report for a testsuite. """ return testplan.report.TestGroupReport( name=testsuite.name, description=strings.get_docstring(testsuite.__class__), category=testplan.report.ReportCategories.TESTSUITE, uid=testsuite.name, tags=testsuite.__tags__, )
def _new_testsuite_report(self, testsuite): """ :return: A new and empty report for a testsuite. """ return TestGroupReport( name=testsuite.name, description=strings.get_docstring(testsuite.__class__), uid=testsuite.uid(), category=ReportCategories.TESTSUITE, tags=testsuite.__tags__, strict_order=testsuite.strict_order, )
def _new_parametrized_group_report(self, param_template, param_method): """ :return: A new and empty report for a parametrization group. """ # Don't include the template method's docstring in the report to # avoid duplication with the generated testcases. return testplan.report.TestGroupReport( name=param_method.name, description=strings.get_docstring(param_method), category=testplan.report.ReportCategories.PARAMETRIZATION, uid=param_template, tags=param_method.__tags__, )