Sha256: 5a73421a3ffa7b55bbe2d07cf836112adcf01dbbc2879c9f57a7fd48dcf64145

Contents?: true

Size: 624 Bytes

Versions: 8

Compression:

Stored size: 624 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]
        end

        def name
          raise NotImplementedError
        end

        def file
          raise NotImplementedError
        end

        def skipped?
          raise NotImplementedError
        end

        def failures
          raise NotImplementedError
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gitlab_quality-test_tooling-1.3.0 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.2.0 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.1.0 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.0.0 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-0.9.3 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-0.9.2 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-0.9.1 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-0.9.0 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb