def pytest_runtest_logreport ( self , report ) : rep = report res = self . config . hook . pytest_report_teststatus ( report = rep ) cat , letter , word = res self . stats . setdefault ( cat , [ ] ) . append ( rep )
how to generate test case report in python unittest
Store all test reports for evaluation on finish
def pytest_runtest_logreport(self, report):
        """Store all test reports for evaluation on finish"""
        rep = report
        res = self.config.hook.pytest_report_teststatus(report=rep)
        cat, letter, word = res
        self.stats.setdefault(cat, []).append(rep)