Sha256: 0a0fc14f14e627ef8e327b3cf349468593babc74b7a1a83f2756f8fd0b4c242b

Contents?: true

Size: 476 Bytes

Versions: 5

Compression:

Stored size: 476 Bytes

Contents

# frozen_string_literal: true

require 'nokogiri'

module Gitlab
  module QA
    module Report
      class JUnitTestResults < BaseTestResults
        def write(path)
          # Ignore it for now
        end

        private

        def parse(path)
          Nokogiri::XML.parse(File.read(path))
        end

        def process
          results.xpath('//testcase').map do |test|
            TestResult.from_junit(test)
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gitlab-qa-6.7.0 lib/gitlab/qa/report/junit_test_results.rb
gitlab-qa-6.6.0 lib/gitlab/qa/report/junit_test_results.rb
gitlab-qa-6.5.0 lib/gitlab/qa/report/junit_test_results.rb
gitlab-qa-6.4.1 lib/gitlab/qa/report/junit_test_results.rb
gitlab-qa-6.4.0 lib/gitlab/qa/report/junit_test_results.rb