class Rootage::ScenarioResult
‘ScenarioResult` is a result of scenario execution. This has result status, stdout, stdin, and etc, so you can analyze and check it.
Public Instance Methods
report()
click to toggle source
Print the scenario result report.
# File lib/rootage/test-helper.rb, line 37 def report template = File.read(File.join(File.dirname(__FILE__), "scenario-test-result.erb")) File.open("scenario-test-result.txt", "a") do |file| file.write(ERB.new(template, nil, "<>").result(binding)) end end
success?()
click to toggle source
Return true if the scenario succeeded.
# File lib/rootage/test-helper.rb, line 32 def success? exception.nil? or (exception.kind_of?(SystemExit) and exception.success?) end