Class: Praegustator::Reporter
- Inherits:
-
Object
- Object
- Praegustator::Reporter
- Defined in:
- lib/praegustator/reporter.rb
Instance Method Summary collapse
- #add_spec_result(node, json) ⇒ Object
-
#initialize ⇒ Reporter
constructor
A new instance of Reporter.
- #status ⇒ Object
Constructor Details
#initialize ⇒ Reporter
Returns a new instance of Reporter.
4 5 6 |
# File 'lib/praegustator/reporter.rb', line 4 def initialize @test_suite_restults = {} end |
Instance Method Details
#add_spec_result(node, json) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/praegustator/reporter.rb', line 12 def add_spec_result node,json print_status node.ipaddress , json[:summary][:failure_count] > 0 return if json[:examples].nil? @test_suite_restults[node] = json print_summary node.query, json[:summary] print_passed json[:examples].select{|e| e[:status] =='passed'}.map{|e| e[:full_description]} print_failures json[:examples].select{|e| e[:status] =='failed'}.map{|e| e[:full_description]} end |
#status ⇒ Object
8 9 10 |
# File 'lib/praegustator/reporter.rb', line 8 def status @status end |