class TestRun::Tests::Minitest::Wrappers::SingleFile
Public Instance Methods
app_root()
click to toggle source
# File lib/test_run/tests/minitest/wrappers/single_file.rb, line 13 def app_root exploded_path = Utils::Path.split(file) path = exploded_path[0...exploded_path.rindex("test")] File.join(path) end
relative_test_path()
click to toggle source
# File lib/test_run/tests/minitest/wrappers/single_file.rb, line 20 def relative_test_path exploded_path = Utils::Path.split(file) path = exploded_path[exploded_path.rindex("test")..-1] File.join(path) end
to_command()
click to toggle source
# File lib/test_run/tests/minitest/wrappers/single_file.rb, line 9 def to_command %{cd #{File.join(app_root)} && ruby -I test #{File.join(relative_test_path)}} end