Module: TestLauncher::Frameworks::Minitest

Defined in:
lib/test_launcher/frameworks/minitest.rb

Defined Under Namespace

Classes: Runner, Searcher, TestCase

Class Method Summary collapse

Class Method Details

.active?Boolean

Returns:

  • (Boolean)


8
9
10
11
# File 'lib/test_launcher/frameworks/minitest.rb', line 8

def self.active?
  # Do not do this outside of the shell.
  `git ls-files '*_test.rb'`.split("\n").any?
end

.runner(*a) ⇒ Object



21
22
23
# File 'lib/test_launcher/frameworks/minitest.rb', line 21

def self.runner(*a)
  Runner.new(*a)
end

.searcher(*a) ⇒ Object



17
18
19
# File 'lib/test_launcher/frameworks/minitest.rb', line 17

def self.searcher(*a)
  Searcher.new(*a)
end

.test_case(*a) ⇒ Object



13
14
15
# File 'lib/test_launcher/frameworks/minitest.rb', line 13

def self.test_case(*a)
  TestCase.new(*a)
end