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) ⇒ 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.

Returns:

  • (Integer) —

    0 on success, 1 on failure.



15
16
17
# File 'lib/mutineer/test_runners/minitest.rb', line 15

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