Module: RSpec::CoverIt
- Defined in:
- lib/rspec/cover_it.rb,
lib/rspec/cover_it.rb,
lib/rspec/cover_it/context.rb,
lib/rspec/cover_it/version.rb,
lib/rspec/cover_it/coverage_state.rb,
lib/rspec/cover_it/context_coverage.rb,
lib/rspec/cover_it/pretest_coverage.rb,
lib/rspec/cover_it/example_group_completeness_checker.rb
Defined Under Namespace
Classes: Context, ContextCoverage, CoverageState, ExampleGroupCompletenessChecker, PretestCoverage
Constant Summary collapse
- Error =
Class.new(StandardError)
- NotReady =
Class.new(Error)
- MissingCode =
Class.new(Error)
- MissingCoverage =
Class.new(Error)
- VERSION =
"0.1.0"
Class Attribute Summary collapse
-
.state ⇒ Object
Returns the value of attribute state.
Class Method Summary collapse
Class Attribute Details
.state ⇒ Object
Returns the value of attribute state.
18 19 20 |
# File 'lib/rspec/cover_it.rb', line 18 def state @state end |
Class Method Details
.setup(filter: nil, autoenforce: false) ⇒ Object
21 22 23 24 25 |
# File 'lib/rspec/cover_it.rb', line 21 def self.setup(filter: nil, autoenforce: false) RSpec::CoverIt.state = CoverageState.new(filter: filter, autoenforce: autoenforce) setup_pretest_tracking setup_per_context_tracking end |