Beispiel #1
0
    def report(self, recurse: bool = False, indent: int = 0) -> None:
        """
        Report suite result.

        Only report to case level by default, since steps will be previously recorded.
        """
        message = 'SUITE {}: {} | {} | {}'.format(self.test, self.description,
                                                  self.state, self.message)
        message = ReportService.indent(message, indent)
        ReportService.report(message, IReport.Level.info,
                             IReport.Patency.minor)
        super().report(recurse, indent)
Beispiel #2
0
    def report(self, recurse: bool = True, indent: int = 0) -> None:
        """
        Output the final result(s) to persistent I/O

        :param recurse: n/a but exists for polymorphism of the encompassing testable
        :param indent: amount to indent textual output to mirror the testable hierarchy
        """
        message = 'STEP: {} | {} | {}'.format(self.description, self.state,
                                              self.message)
        message = ReportService.indent(message, indent)
        ReportService.report(message, IReport.Level.info,
                             IReport.Patency.minor)
Beispiel #3
0
    def report(self, recurse: bool = True, indent: int = 0) -> None:
        """
        Report case result.

        Recurse into flights by default to show hierarchy.
        """
        message = 'CASE {}: {} | {} | {}'.format(self.test, self.description,
                                                 self.state, self.message)
        message = ReportService.indent(message, indent)
        ReportService.report(message, IReport.Level.info,
                             IReport.Patency.minor)
        if recurse:
            super().report(recurse, indent)