Class: Autotest::Bacon

Inherits:
Autotest
  • Object
show all
Defined in:
lib/autotest/bacon.rb

Direct Known Subclasses

BaconRspec

Instance Method Summary collapse

Constructor Details

#initializeBacon

Returns a new instance of Bacon.



25
26
27
28
# File 'lib/autotest/bacon.rb', line 25

def initialize
  super
  self.libs = %w[. lib test spec].join(File::PATH_SEPARATOR)
end

Instance Method Details

#make_test_cmd(files_to_test) ⇒ Object



30
31
32
33
34
35
# 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 -I#{libs} -o TestUnit #{args}"
end