class Korinthenkacker::TestReport
Attributes
build[R]
jobname[R]
json[R]
Public Class Methods
new(jobname, build, json)
click to toggle source
# File lib/korinthenkacker/test_report.rb, line 7 def initialize(jobname, build, json) @jobname = jobname @build = build @json = json end
Public Instance Methods
cases()
click to toggle source
# File lib/korinthenkacker/test_report.rb, line 37 def cases json['suites'] .map { |suite| suite['cases'] } .flatten .map { |my_case| TestCase.new(my_case, build) } end
duration()
click to toggle source
# File lib/korinthenkacker/test_report.rb, line 13 def duration json['duration'] end
fail_count()
click to toggle source
# File lib/korinthenkacker/test_report.rb, line 17 def fail_count json['failCount'] end
failure?()
click to toggle source
# File lib/korinthenkacker/test_report.rb, line 33 def failure? !success? end
pass_count()
click to toggle source
# File lib/korinthenkacker/test_report.rb, line 21 def pass_count json['passCount'] end
skip_count()
click to toggle source
# File lib/korinthenkacker/test_report.rb, line 25 def skip_count json['skipCount'] end
success?()
click to toggle source
# File lib/korinthenkacker/test_report.rb, line 29 def success? fail_count == 0 && skip_count == 0 end