Module: Mutineer::TestRunners::Minitest

Defined in:
lib/mutineer/test_runners/minitest.rb

Overview

Thin wrapper around the shared Minitest integration runner.

Class Method Summary collapse

Class Method Details

.run(test_files, stop_at_first_failure: false, record_to: nil) ⇒ Integer

Runs the given Minitest files.

Parameters:

  • test_files (String, Array<String>) —

    one file or many files.

  • stop_at_first_failure (Boolean) (defaults to: false) —

    when true, the run ends at the first failing test.

  • record_to (IO, nil) (defaults to: nil) —

    a --matrix run: send each test's outcome to this channel and run every test.

Returns:

  • (Integer) —

    0 on success, 1 on failure, 2 when the first failure was an Active Record connection or lock error.



18
19
20
# File 'lib/mutineer/test_runners/minitest.rb', line 18

def self.run(test_files, stop_at_first_failure: false, record_to: nil)
  MinitestIntegration.run(test_files, stop_at_first_failure: stop_at_first_failure, record_to: record_to)
end