Class: Henitai::Integration::MinitestSuiteCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/henitai/integration/minitest_suite_command.rb

Overview

Builds the argv used to run Minitest test files in an external Ruby process, for Minitest#spawn_suite_process's baseline coverage bootstrap.

Instance Method Summary collapse

Instance Method Details

#build(test_files) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/henitai/integration/minitest_suite_command.rb', line 8

def build(test_files)
  ["bundle", "exec", "ruby", "-I", "test",
   "-r", "henitai/minitest_simplecov",
   "-r", "henitai/minitest_coverage_hook",
   "-e", "ARGV.each { |f| require File.expand_path(f) }",
   *test_files]
end