Sha256: 8844fa19575e658ebc8f95b11e72decd69499ddede7c6ffa7121b463c12175e3

Contents?: true

Size: 582 Bytes

Versions: 7

Compression:

Stored size: 582 Bytes

Contents

require_relative 'parser'
require_relative 'executor'

### Runners are in charge of running your tests, depending on the framework
# Instead of slamming all of this junk in an `M` class, it's here instead.
module M
  class Runner
    def initialize(argv)
      @argv = argv
    end

    # 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
    def run
      testable = Parser.new(@argv).parse
      Executor.new(testable).execute
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
m-1.6.1 lib/m/runner.rb
m-1.6.0 lib/m/runner.rb
m-1.5.1 lib/m/runner.rb
m-1.5.0 lib/m/runner.rb
m-1.4.2 lib/m/runner.rb
m-1.4.0 lib/m/runner.rb
m-1.3.4 lib/m/runner.rb