Class: WhatToRun::CLI
- Inherits:
-
Object
- Object
- WhatToRun::CLI
- Defined in:
- lib/what_to_run/cli.rb
Instance Method Summary collapse
Instance Method Details
#run(argv) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/what_to_run/cli.rb', line 6 def run(argv) framework = Array(argv)[0] abort 'Must specify a test framework' unless framework = (argv) begin runner = load_runner framework.downcase runner.new().run rescue LoadError abort "Unsupported test framework: #{framework}" end end |