Module: Mutineer::TestRunners
- Defined in:
- lib/mutineer/test_runners.rb,
lib/mutineer/test_runners/rspec.rb,
lib/mutineer/test_runners/minitest.rb
Overview
Picks the test-framework runner.
Each runner responds to .run(files, stop_at_first_failure: false) -> 0/1
(0 = all passed, 1 = any failure) and is called only inside a forked child.
Only the mutant path passes stop_at_first_failure: true. The fork boundary
silences stdout (see ChildStdout); the runners do not.
Defined Under Namespace
Class Method Summary collapse
-
.for(framework) ⇒ Module
Returns the runner module for a framework name.
Class Method Details
.for(framework) ⇒ Module
Returns the runner module for a framework name.
19 20 21 22 23 24 25 26 |
# File 'lib/mutineer/test_runners.rb', line 19 def self.for(framework) case framework when "rspec" then RSpec when "minitest", nil, "" then Minitest else raise Mutineer::ConfigError, "unknown framework #{framework.inspect} (expected: minitest, rspec)" end end |