Module: Retest::Runners
- Defined in:
- lib/retest/runners.rb,
lib/retest/runners/runner.rb,
lib/retest/runners/test_runner.rb,
lib/retest/runners/change_runner.rb,
lib/retest/runners/variable_runner.rb,
lib/retest/runners/cached_test_file.rb
Defined Under Namespace
Modules: CachedTestFile Classes: ChangeRunner, Runner, TestRunner, VariableRunner
Class Method Summary collapse
Class Method Details
.runner_for(command) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/retest/runners.rb', line 10 def runner_for(command) for_test = command.include?('<test>') for_change = command.include?('<changed>') if for_test && for_change then VariableRunner elsif for_test then TestRunner elsif for_change then ChangeRunner else Runner end.new command end |