original_docstring: Helper function to print the summary results of all tests
docstring: Helper function to print the summary results of all tests
docstring_tokens: Helper function to print the summary results of all tests
code: def report_output_summary(self):
          """Helper function to print the summary results of all tests"""
          failure_messages = [
              item for item in self.status_messages if item.type == StatusMessage.FAILURE]
          warning_messages = [
              item for item in self.status_messages if item.type == StatusMessage.WARNING]
          passed_tests = sum(
              1 for item in self.status_messages if item.type == StatusMessage.SUCCESS)
          passed_tests = self.total_tests - len(failure_messages)
          # Print some lines at the bottom of output to make it more readable
          # This occurs here so there is always space and not only when the
          # successful test info prints
          print '\n\n'
  
          # Only print success info if we explicitly want to print output
          # but always print any errors or warnings below
          if self.print_output:
              # Print a message indicating how many of the total tests passed
              LOGGER_CLI.info('%s(%d/%d) Successful Tests%s', COLOR_GREEN, passed_tests,
                              self.total_tests, COLOR_RESET)
  
          # Check if there were failed tests and report on them appropriately
          if failure_messages:
              # Print a message indicating how many of the total tests failed
              LOGGER_CLI.error('%s(%d/%d) Failures%s', COLOR_RED, len(failure_messages),
                               self.total_tests, COLOR_RESET)
  
              # Iterate over the rule_name values in the failed list and report on them
              for index, failure in enumerate(failure_messages, start=1):
                  LOGGER_CLI.error('%s(%d/%d) %s%s', COLOR_RED, index,
                                   len(failure_messages), failure.message, COLOR_RESET)
  
          # Check if there were any warnings and report on them
          if warning_messages:
              warning_count = len(warning_messages)
              LOGGER_CLI.warn('%s%d Warning%s%s', COLOR_YELLOW, warning_count,
                              ('s' if warning_count > 1 else ''), COLOR_RESET)
  
              for index, warning in enumerate(warning_messages, start=1):
                  LOGGER_CLI.warn('%s(%d/%d) %s%s', COLOR_YELLOW, index, warning_count,
                                  warning.message, COLOR_RESET)
code_tokens: def report_output_summary ( self ) : failure_messages = [ item for item in self . status_messages if item . type == StatusMessage . FAILURE ] warning_messages = [ item for item in self . status_messages if item . type == StatusMessage . WARNING ] passed_tests = sum ( 1 for item in self . status_messages if item . type == StatusMessage . SUCCESS ) passed_tests = self . total_tests - len ( failure_messages ) print '\n\n' if self . print_output : LOGGER_CLI . info ( '%s(%d/%d) Successful Tests%s' , COLOR_GREEN , passed_tests , self . total_tests , COLOR_RESET ) if failure_messages : LOGGER_CLI . error ( '%s(%d/%d) Failures%s' , COLOR_RED , len ( failure_messages ) , self . total_tests , COLOR_RESET ) for index , failure in enumerate ( failure_messages , start = 1 ) : LOGGER_CLI . error ( '%s(%d/%d) %s%s' , COLOR_RED , index , len ( failure_messages ) , failure . message , COLOR_RESET ) if warning_messages : warning_count = len ( warning_messages ) LOGGER_CLI . warn ( '%s%d Warning%s%s' , COLOR_YELLOW , warning_count , ( 's' if warning_count > 1 else '' ) , COLOR_RESET ) for index , warning in enumerate ( warning_messages , start = 1 ) : LOGGER_CLI . warn ( '%s(%d/%d) %s%s' , COLOR_YELLOW , index , warning_count , warning . message , COLOR_RESET )
short_docstring: Helper function to print the summary results of all tests
short_docstring_tokens: Helper function to print the summary results of all tests
comment: """Helper function to print the summary results of all tests"""$SEP$# Print some lines at the bottom of output to make it more readable$SEP$# This occurs here so there is always space and not only when the$SEP$# successful test info prints$SEP$# Only print success info if we explicitly want to print output$SEP$# but always print any errors or warnings below$SEP$# Print a message indicating how many of the total tests passed$SEP$# Check if there were failed tests and report on them appropriately$SEP$# Print a message indicating how many of the total tests failed$SEP$# Iterate over the rule_name values in the failed list and report on them$SEP$# Check if there were any warnings and report on them