docstr: Handler for starting the test framework
  
  Args:
      options (argparse.Namespace): Parsed arguments
      config (CLIConfig): Loaded StreamAlert config
  
  Returns:
      bool: False if errors occurred, True otherwise
code: def handler(cls, options, config):
      """Handler for starting the test framework
  
      Args:
          options (argparse.Namespace): Parsed arguments
          config (CLIConfig): Loaded StreamAlert config
  
      Returns:
          bool: False if errors occurred, True otherwise
      """
      result = True
      opts = vars(options)
      repeat = opts.get("repeat", 1)
      for i in range(repeat):
          if repeat != 1:
              print("\nRepetition #", i + 1)
          result = result and TestRunner(options, config).run()
  
      if opts.get("stats"):
          print(RuleStatisticTracker.statistics_info())
      return result
  
imports: import argparse
  import os
  import jmespath
  from mock import patch, MagicMock
  from streamalert.alert_processor import main
  from streamalert.alert_processor.helpers import compose_alert
  from streamalert.alert_processor.outputs.output_base import OutputDispatcher
  from streamalert.classifier import classifier
  from streamalert.rules_engine import rules_engine
  from streamalert.shared import rule
  from streamalert.shared.config import ConfigError
  from streamalert.shared.logger import get_logger
  from streamalert.shared.stats import RuleStatisticTracker
  from streamalert_cli.helpers import check_credentials
  from streamalert_cli.test.format import format_green, format_red, format_underline, format_yellow
  from streamalert_cli.test.mocks import LookupTableMocks, ThreatIntelMocks
  from streamalert_cli.test.event_file import TestEventFile
  from streamalert_cli.utils import CLICommand, DirectoryType, generate_subparser, UniqueSortedFileListAction, UniqueSortedListAction
label_desc: Use image node_id 6 for calling the TestCommand obj's underlying member method code with example usage: obj.handler(cls, options, config) and returns: result