Class: M::Runner
- Inherits:
-
Object
- Object
- M::Runner
- Defined in:
- lib/m/runner.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ Runner
constructor
A new instance of Runner.
-
#run ⇒ Object
There’s two steps to running our tests: 1.
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
#run ⇒ Object
There’s two steps to running our tests:
-
Parsing the given input for the tests we need to find (or groups of tests)
-
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 |