Sha256: 6ebe3bb10f7ff938eb6510db33bd7fe91af0dee3c2d2999458cbc7241e40f6c1

Contents?: true

Size: 410 Bytes

Versions: 7

Compression:

Stored size: 410 Bytes

Contents

# frozen_string_literal: true

require 'nokogiri'

module Gitlab
  module QA
    module Report
      class JUnitTestResults
        include Enumerable

        def initialize(file)
          @testcases = Nokogiri::XML(File.read(file)).xpath('//testcase').map { |test| TestResult.from_junit(test) }
        end

        def each(&block)
          @testcases.each(&block)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gitlab-qa-6.3.0 lib/gitlab/qa/report/junit_test_results.rb
gitlab-qa-6.2.0 lib/gitlab/qa/report/junit_test_results.rb
gitlab-qa-6.1.3 lib/gitlab/qa/report/junit_test_results.rb
gitlab-qa-6.1.2 lib/gitlab/qa/report/junit_test_results.rb
gitlab-qa-6.1.1 lib/gitlab/qa/report/junit_test_results.rb
gitlab-qa-6.1.0 lib/gitlab/qa/report/junit_test_results.rb
gitlab-qa-6.0.0 lib/gitlab/qa/report/junit_test_results.rb