Module: M

Defined in:
lib/m/runner.rb,
lib/m.rb,
lib/m/parser.rb,
lib/m/version.rb,
lib/m/executor.rb,
lib/m/testable.rb,
lib/m/frameworks.rb,
lib/m/test_method.rb,
lib/m/runners/base.rb,
lib/m/test_collection.rb,
lib/m/runners/test_unit.rb,
lib/m/runners/minitest_4.rb,
lib/m/runners/minitest_5.rb,
lib/m/runners/unsupported_framework.rb

Overview

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.

Defined Under Namespace

Modules: Runners Classes: Executor, Frameworks, Parser, Runner, TestCollection, TestMethod, Testable

Constant Summary collapse

VERSION =
"1.6.2".freeze

Class Method Summary collapse

Class Method Details

.run(argv) ⇒ Object

Accept arguments coming from bin/m and run tests, then bail out immediately.



9
10
11
12
13
14
# File 'lib/m.rb', line 9

def self.run argv
  # sync output since we're going to exit hard and fast
  $stdout.sync = true
  $stderr.sync = true
  exit! Runner.new(argv).run
end