Sha256: f0fe2433b5d3e2660da73f4886e008f40c19aca882165e5b7ca7ce21f17fd9c5

Contents?: true

Size: 803 Bytes

Versions: 16

Compression:

Stored size: 803 Bytes

Contents

# frozen_string_literal: true

module GitlabQuality
  module TestTooling
    module TestResults
      class BaseTestResults
        include Enumerable

        attr_reader :path

        def initialize(path:, token: nil, project: nil, ref: 'master')
          @path = path
          @token = token
          @project = project
          @ref = ref
          @results = parse
          @testcases = process
        end

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

        def write
          raise NotImplementedError
        end

        private

        attr_reader :results, :testcases, :token, :project, :ref

        def parse
          raise NotImplementedError
        end

        def process
          raise NotImplementedError
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
gitlab_quality-test_tooling-2.2.0 lib/gitlab_quality/test_tooling/test_results/base_test_results.rb
gitlab_quality-test_tooling-2.1.0 lib/gitlab_quality/test_tooling/test_results/base_test_results.rb
gitlab_quality-test_tooling-2.0.0 lib/gitlab_quality/test_tooling/test_results/base_test_results.rb
gitlab_quality-test_tooling-1.39.0 lib/gitlab_quality/test_tooling/test_results/base_test_results.rb
gitlab_quality-test_tooling-1.38.1 lib/gitlab_quality/test_tooling/test_results/base_test_results.rb
gitlab_quality-test_tooling-1.38.0 lib/gitlab_quality/test_tooling/test_results/base_test_results.rb
gitlab_quality-test_tooling-1.37.0 lib/gitlab_quality/test_tooling/test_results/base_test_results.rb
gitlab_quality-test_tooling-1.36.0 lib/gitlab_quality/test_tooling/test_results/base_test_results.rb
gitlab_quality-test_tooling-1.35.0 lib/gitlab_quality/test_tooling/test_results/base_test_results.rb
gitlab_quality-test_tooling-1.34.0 lib/gitlab_quality/test_tooling/test_results/base_test_results.rb
gitlab_quality-test_tooling-1.33.0 lib/gitlab_quality/test_tooling/test_results/base_test_results.rb
gitlab_quality-test_tooling-1.32.1 lib/gitlab_quality/test_tooling/test_results/base_test_results.rb
gitlab_quality-test_tooling-1.32.0 lib/gitlab_quality/test_tooling/test_results/base_test_results.rb
gitlab_quality-test_tooling-1.31.0 lib/gitlab_quality/test_tooling/test_results/base_test_results.rb
gitlab_quality-test_tooling-1.29.1 lib/gitlab_quality/test_tooling/test_results/base_test_results.rb
gitlab_quality-test_tooling-1.29.0 lib/gitlab_quality/test_tooling/test_results/base_test_results.rb