Class: Gitlab::QA::Report::TestResult::JsonTestResult
Instance Attribute Summary
#failures, #report
Instance Method Summary
collapse
from_json, from_junit, #initialize
Instance Method Details
#file ⇒ Object
45
46
47
|
# File 'lib/gitlab/qa/report/test_result.rb', line 45
def file
report['file_path']
end
|
#name ⇒ Object
41
42
43
|
# File 'lib/gitlab/qa/report/test_result.rb', line 41
def name
report['full_description']
end
|
#skipped ⇒ Object
49
50
51
|
# File 'lib/gitlab/qa/report/test_result.rb', line 49
def skipped
report['status'] == 'pending'
end
|
#testcase ⇒ Object
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
|