Sha256: 5c9e80466150418f2859191066a790be52fd33d3659461f0cfd7795df391fd1b

Contents?: true

Size: 765 Bytes

Versions: 20

Compression:

Stored size: 765 Bytes

Contents

# frozen_string_literal: true

module GitlabQuality
  module TestTooling
    module TestResult
      class BaseTestResult
        attr_reader :report

        def initialize(report)
          @report = report
        end

        def stage
          @stage ||= file[%r{(?:api|browser_ui)/(?:(?:\d+_)?(\w+))}, 1] || category
        end

        def name
          raise NotImplementedError
        end

        def file
          raise NotImplementedError
        end

        def category
          raise NotImplementedError
        end

        def skipped?
          raise NotImplementedError
        end

        def failures
          raise NotImplementedError
        end

        def failures?
          failures.any?
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
gitlab_quality-test_tooling-1.18.0 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.17.0 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.15.0 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.14.2 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.14.1 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.14.0 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.13.0 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.12.0 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.11.0 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.10.1 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.10.0 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.9.0 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.8.1 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.8.0 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.7.0 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.5.4 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.5.3 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.5.2 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.5.1 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.5.0 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb