Sha256: f23d57c13e511dfc3edaed07b563f3aaeca660f0764dde1ecb31b91aedd71b27

Contents?: true

Size: 834 Bytes

Versions: 7

Compression:

Stored size: 834 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 section
          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

7 entries across 7 versions & 1 rubygems

Version Path
gitlab_quality-test_tooling-1.22.0 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.21.1 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.21.0 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.20.1 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.20.0 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.19.1 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb
gitlab_quality-test_tooling-1.19.0 lib/gitlab_quality/test_tooling/test_result/base_test_result.rb