Пример #1
0
 def pytest_collectreport(self, report):
     """ Live errors during test suite run """
     TerminalReporter.pytest_collectreport(self, report)
     if report.failed:
         if self.isatty:
             self.rewrite("")
         self.print_failure(report)
Пример #2
0
 def pytest_collectreport(self, report):
     TerminalReporter.pytest_collectreport(self, report)
     if report.location[0]:
         self.paths_left.append(os.path.join(os.getcwd(), report.location[0]))
     if report.failed:
         self.rewrite("")
         self.print_failure(report)
Пример #3
0
 def pytest_collectreport(self, report):
     # Show errors occurred during the collection instantly.
     TerminalReporter.pytest_collectreport(self, report)
     if report.failed:
         if self.isatty:
             self.rewrite('')  # erase the "collecting"/"collected" message
         self.print_failure(report)
Пример #4
0
 def pytest_collectreport(self, report):
     TerminalReporter.pytest_collectreport(self, report)
     if report.location[0]:
         self.paths_left.append(
             os.path.join(os.getcwd(), report.location[0]))
     if report.failed:
         self.rewrite("")
         self.print_failure(report)
 def pytest_collectreport(self, report):
     # Show errors occurred during the collection instantly.
     TerminalReporter.pytest_collectreport(self, report)
     if self.config.option.instafail:
         if report.failed:
             if self.isatty:
                 self.rewrite(
                     '')  # erase the "collecting"/"collected" message
             self.print_failure(report)
Пример #6
0
    def pytest_collectreport(self, report):
        """Report failure during colltion.

        :type report: :py:class:_pytest.runner.CollectReport
        """
        TerminalReporter.pytest_collectreport(self, report)

        if report.failed:
            self.report_failure(report, when='collect')
Пример #7
0
    def pytest_collectreport(self, report):
        """Report failure during colltion.

        :type report: :py:class:_pytest.runner.CollectReport
        """
        TerminalReporter.pytest_collectreport(self, report)

        if report.failed:
            self.report_failure(report, when='collect')
Пример #8
0
 def pytest_collectreport(self, report):
     # Show errors occurred during the collection instantly.
     TerminalReporter.pytest_collectreport(self, report)
     if report.failed:
         self.rewrite("")  # erase the "collecting" message
         self.print_failure(report)