Module: TestProf::TPSProf

Defined in:
lib/test_prof/tps_prof.rb,
lib/test_prof/tps_prof/rspec.rb,
lib/test_prof/tps_prof/profiler.rb,
lib/test_prof/tps_prof/reporter/text.rb

Overview

TPSProf shows top-N example group based on their tests-per-second value.

Example:

TPS_PROF=10 rspec ...

Defined Under Namespace

Modules: Reporter Classes: Configuration, Profiler, RSpecListener

Class Method Summary collapse

Class Method Details

.configObject



33
34
35
# File 'lib/test_prof/tps_prof.rb', line 33

def config
  @config ||= Configuration.new
end

.configure {|config| ... } ⇒ Object

Yields:



37
38
39
# File 'lib/test_prof/tps_prof.rb', line 37

def configure
  yield config
end