class Autotest::Bacon

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/autotest/bacon.rb, line 25
def initialize
  super
  self.libs = %w[. lib test spec].join(File::PATH_SEPARATOR)
end

Public Instance Methods

make_test_cmd(files_to_test) click to toggle source
# File lib/autotest/bacon.rb, line 30
def make_test_cmd(files_to_test)
  args = files_to_test.keys.flatten.join(' ')
  args = '-a' if args.empty?
  # TODO : make regex to pass to -n using values
  "#{ruby} -S bacon -o TestUnit #{args}"
end