Class: SpecCoverage
- Inherits:
-
RSpec::Core::Formatters::BaseFormatter
- Object
- RSpec::Core::Formatters::BaseFormatter
- SpecCoverage
- 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
-
#initialize ⇒ SpecCoverage
constructor
A new instance of SpecCoverage.
Constructor Details
#initialize ⇒ SpecCoverage
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 |