Class: Gitlab::QA::Report::TestResult::JsonTestResult

Inherits:
Gitlab::QA::Report::TestResult show all
Defined in:
lib/gitlab/qa/report/test_result.rb

Instance Attribute Summary

Attributes inherited from Gitlab::QA::Report::TestResult

#failures, #report

Instance Method Summary collapse

Methods inherited from Gitlab::QA::Report::TestResult

from_json, from_junit, #initialize

Constructor Details

This class inherits a constructor from Gitlab::QA::Report::TestResult

Instance Method Details

#fileObject



45
46
47
# File 'lib/gitlab/qa/report/test_result.rb', line 45

def file
  report['file_path']
end

#nameObject



41
42
43
# File 'lib/gitlab/qa/report/test_result.rb', line 41

def name
  report['full_description']
end

#skippedObject



49
50
51
# File 'lib/gitlab/qa/report/test_result.rb', line 49

def skipped
  report['status'] == 'pending'
end

#testcaseObject



53
54
55
# File 'lib/gitlab/qa/report/test_result.rb', line 53

def testcase
  report['testcase']
end

#testcase=(new_testcase) ⇒ Object



57
58
59
# File 'lib/gitlab/qa/report/test_result.rb', line 57

def testcase=(new_testcase)
  report['testcase'] = new_testcase
end