Class: M::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/m/runner.rb

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Runner

Returns a new instance of Runner.



8
9
10
# File 'lib/m/runner.rb', line 8

def initialize argv
  @argv = argv
end

Instance Method Details

#runObject

There’s two steps to running our tests:

  1. Parsing the given input for the tests we need to find (or groups of tests)

  2. Run those tests we found that match what you wanted



15
16
17
18
# File 'lib/m/runner.rb', line 15

def run
  testable = Parser.new(@argv).parse
  Executor.new(testable).execute
end