Class: Gitlab::QA::Report::BaseTestResults

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/gitlab/qa/report/base_test_results.rb

Direct Known Subclasses

JUnitTestResults, JsonTestResults

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ BaseTestResults

Returns a new instance of BaseTestResults.



11
12
13
14
15
# File 'lib/gitlab/qa/report/base_test_results.rb', line 11

def initialize(path)
  @path = path
  @results = parse
  @testcases = process
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



9
10
11
# File 'lib/gitlab/qa/report/base_test_results.rb', line 9

def path
  @path
end

Instance Method Details

#each(&block) ⇒ Object



17
18
19
# File 'lib/gitlab/qa/report/base_test_results.rb', line 17

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

#writeObject

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/gitlab/qa/report/base_test_results.rb', line 21

def write
  raise NotImplementedError
end