Class: DevCreek::RSpecAdapter

Inherits:
MetricCollector show all
Includes:
Singleton
Defined in:
lib/devcreek_metriccollector.rb

Constant Summary

Constants included from Log

Log::DEV_CREEK_LOG

Instance Method Summary collapse

Methods inherited from MetricCollector

#end, #test_failed, #test_finished, #test_started

Methods included from Log

#logger

Instance Method Details

#example_failed(example, behaviour, due_to_a_failure) ⇒ Object



95
96
97
# File 'lib/devcreek_metriccollector.rb', line 95

def example_failed(example, behaviour, due_to_a_failure)     
  test_failed("#{behaviour}_#{example}", due_to_a_failure)
end

#example_finished(example, behaviour) ⇒ Object



91
92
93
# File 'lib/devcreek_metriccollector.rb', line 91

def example_finished(example, behaviour)
  test_finished("#{behaviour}_#{example}")
end

#example_started(example, behaviour) ⇒ Object



87
88
89
# File 'lib/devcreek_metriccollector.rb', line 87

def example_started(example, behaviour)
  test_started("#{behaviour}_#{example}", example, behaviour)
end

#startObject



83
84
85
# File 'lib/devcreek_metriccollector.rb', line 83

def start
  super "RSpec"
end