Class: SpecCoverage

Inherits:
RSpec::Core::Formatters::BaseFormatter
  • Object
show all
Defined in:
lib/spec_coverage.rb

Overview

This formatter does nothing else but run SimpleCov. That means that if you run this formatter on its own, you won’t get any output. It is advised to add your favorite formatter, like this, to see test failures and so on:

rspec spec -f SpecCoverage -fd

Instance Method Summary collapse

Constructor Details

#initializeSpecCoverage

Returns a new instance of SpecCoverage.



12
13
14
15
16
17
# File 'lib/spec_coverage.rb', line 12

def initialize(*)
  super
  add_default_filter
  load_simplecov_config
  start_simplecov
end