def parse(file_path)
      require 'nokogiri'

      @doc = Nokogiri::XML(File.open(file_path))

      @total_count = @doc.xpath('//testsuite').map { |x| x.attr('tests').to_i }.inject(0){ |sum, x| sum + x }
      @skipped_count = @doc.xpath('//testsuite').map { |x| x.attr('skipped').to_i }.inject(0){ |sum, x| sum + x }
      @executed_count = @total_count - @skipped_count
      @failed_count = @doc.xpath('//testsuite').map { |x| x.attr('failures').to_i }.inject(0){ |sum, x| sum + x }

      @failures = @doc.xpath('//failure')

      return @failed_count <= 0
    end
def parse(file_path)
      require 'nokogiri'

      @doc = Nokogiri::XML(File.open(file_path))

      @total_count = @doc.xpath('//testsuite').map { |x| x.attr('tests').to_i }.inject(0){ |sum, x| sum + x }
      @skipped_count = @doc.xpath('//testsuite').map { |x| x.attr('skipped').to_i }.inject(0){ |sum, x| sum + x }
      @executed_count = @total_count - @skipped_count
      @failed_count = @doc.xpath('//testsuite').map { |x| x.attr('failures').to_i }.inject(0){ |sum, x| sum + x }

      @failures = @doc.xpath('//failure')

      return @failed_count <= 0
    end
Parses tests.
 @return   [success]