def result

      return if @settings[:wraith].blank?

      node_module_exists('phantomjs', 'brew install')

      puts 'Starting visual regression tests with wraith...'.color(:blue)

      # Run history or latest depending on the existence of a history directory as defined
      #   in each wraith config file.
      # @yieldparam browser [String] headless browser name
      # @yieldparam configpath [String] path to temp config file (see Config#wraith_setup)
      @settings[:wraith].each { |browser, configpath| wraith_report(browser, configpath) }

      @output

    end
def result

      return if @settings[:wraith].blank?

      node_module_exists('phantomjs', 'brew install')

      puts 'Starting visual regression tests with wraith...'.color(:blue)

      # Run history or latest depending on the existence of a history directory as defined
      #   in each wraith config file.
      # @yieldparam browser [String] headless browser name
      # @yieldparam configpath [String] path to temp config file (see Config#wraith_setup)
      @settings[:wraith].each { |browser, configpath| wraith_report(browser, configpath) }

      @output

    end
Runs Wraith through command line
 WARNING: If you call this class from a script,
   you should delete the images generated after they've been
   created.
 @example removing images after run
   dest = '/desired/root/directory'
   wraith_pics = Maximus::Wraith.new.result
   wraith_pics.each do |path_label, data|
     data[:images].each do |image|
       moved_image = "#{dest}/#{File.basename(image)}"
       FileUtils.mv image, moved_image, force: true
     end
   end

 @see Statistic#initialize