class TestRun::Tests::Minitest::Wrappers::MultipleRoots
Attributes
roots[R]
shell[R]
Public Class Methods
new(files, shell)
click to toggle source
# File lib/test_run/tests/minitest/wrappers/multiple_roots.rb, line 11 def initialize(files, shell) @shell = shell @roots = files.map {|f| SingleFile.new(f)}.group_by {|f| f.app_root}.map {|root, _files| SingleRoot.new(_files, shell)} end
Public Instance Methods
to_command()
click to toggle source
# File lib/test_run/tests/minitest/wrappers/multiple_roots.rb, line 16 def to_command roots.map(&:to_command).join("; cd -;\n\n") end