File: rspec.rb

package info (click to toggle)
ruby-rspec-profiling 0.0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 240 kB
  • sloc: ruby: 617; makefile: 51
file content (14 lines) | stat: -rw-r--r-- 326 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require "rspec_profiling"

RSpec.configure do |config|
  runner = RspecProfiling::Run.new(RspecProfiling.config.collector.new,
                                   RspecProfiling.config.vcs.new)

  config.reporter.register_listener(
    runner,
    :start,
    :example_started,
    :example_passed,
    :example_failed
  )
end