class TestRun::Tests::Minitest::Wrappers::SingleRoot

Attributes

files[R]
shell[R]

Public Class Methods

new(files, shell) click to toggle source
# File lib/test_run/tests/minitest/wrappers/single_root.rb, line 11
def initialize(files, shell)
  @shell = shell
  @files = files.map {|f| f.is_a?(SingleFile) ? f : SingleFile.new(f)}
end

Public Instance Methods

app_root() click to toggle source
# File lib/test_run/tests/minitest/wrappers/single_root.rb, line 20
def app_root
  files.first.app_root
end
to_command() click to toggle source
# File lib/test_run/tests/minitest/wrappers/single_root.rb, line 16
def to_command
  %{cd #{app_root} && ruby -I test -e 'ARGV.each { |file| require(Dir.pwd + "/" + file) }' #{files.map(&:relative_test_path).join(" ")}}
end