Sha256: 3673c303b4db86d4136bdf727d0945171aec9d1c05b025eacea4108e1480449f

Contents?: true

Size: 485 Bytes

Versions: 18

Compression:

Stored size: 485 Bytes

Contents

# frozen_string_literal: true

require 'nokogiri'

module GitlabQuality
  module TestTooling
    module TestResults
      class JUnitTestResults < BaseTestResults
        def write
          # Ignore it for now
        end

        private

        def parse
          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

18 entries across 18 versions & 1 rubygems

Version Path
gitlab_quality-test_tooling-0.8.3 lib/gitlab_quality/test_tooling/test_results/j_unit_test_results.rb
gitlab_quality-test_tooling-0.8.2 lib/gitlab_quality/test_tooling/test_results/j_unit_test_results.rb
gitlab_quality-test_tooling-0.8.1 lib/gitlab_quality/test_tooling/test_results/j_unit_test_results.rb
gitlab_quality-test_tooling-0.8.0 lib/gitlab_quality/test_tooling/test_results/j_unit_test_results.rb
gitlab_quality-test_tooling-0.7.0 lib/gitlab_quality/test_tooling/test_results/j_unit_test_results.rb
gitlab_quality-test_tooling-0.6.2 lib/gitlab_quality/test_tooling/test_results/j_unit_test_results.rb
gitlab_quality-test_tooling-0.6.1 lib/gitlab_quality/test_tooling/test_results/j_unit_test_results.rb
gitlab_quality-test_tooling-0.6.0 lib/gitlab_quality/test_tooling/test_results/j_unit_test_results.rb
gitlab_quality-test_tooling-0.5.1 lib/gitlab_quality/test_tooling/test_results/j_unit_test_results.rb
gitlab_quality-test_tooling-0.5.0 lib/gitlab_quality/test_tooling/test_results/j_unit_test_results.rb
gitlab_quality-test_tooling-0.4.3 lib/gitlab_quality/test_tooling/test_results/j_unit_test_results.rb
gitlab_quality-test_tooling-0.4.2 lib/gitlab_quality/test_tooling/test_results/j_unit_test_results.rb
gitlab_quality-test_tooling-0.4.1 lib/gitlab_quality/test_tooling/test_results/j_unit_test_results.rb
gitlab_quality-test_tooling-0.4.0 lib/gitlab_quality/test_tooling/test_results/j_unit_test_results.rb
gitlab_quality-test_tooling-0.3.0 lib/gitlab_quality/test_tooling/test_results/j_unit_test_results.rb
gitlab_quality-test_tooling-0.2.2 lib/gitlab_quality/test_tooling/test_results/j_unit_test_results.rb
gitlab_quality-test_tooling-0.2.1 lib/gitlab_quality/test_tooling/test_results/j_unit_test_results.rb
gitlab_quality-test_tooling-0.2.0 lib/gitlab_quality/test_tooling/test_results/j_unit_test_results.rb