Class: SixthSense::Runners::RSpecCheckedCoverageProbe
- Inherits:
-
Object
- Object
- SixthSense::Runners::RSpecCheckedCoverageProbe
- Defined in:
- lib/sixth_sense/runners/rspec_checked_coverage_probe.rb
Class Method Summary collapse
Class Method Details
.run(spec_path, line) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/sixth_sense/runners/rspec_checked_coverage_probe.rb', line 11 def run(spec_path, line) require "rspec/core" require "rspec/expectations" status = CheckedCoverageTrace.capture do RSpec::Core::Runner.run(["--options", File::NULL, "#{spec_path}:#{line}"], StringIO.new, StringIO.new) end exit(status) rescue LoadError => error warn error. exit(127) end |