Sha256: a47b1f6a1d6cb076f4055c31f585a474b59f10b33f50ad5e1a1c3a1c68b0279c

Contents?: true

Size: 700 Bytes

Versions: 13

Compression:

Stored size: 700 Bytes

Contents

# -*- ruby -*-

require 'rubygems'
require 'spec/more'
require 'autotest/bacon'
#require 'redgreen/autotest'

class Autotest::Bacon < Autotest
    undef make_test_cmd
    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
end


#Autotest.add_hook :initialize do |at|
# at.clear_mappings
#end

#Autotest.add_hook :initialize do |at|
#at.add_mapping(%r%^lib/(.*)\.rb$%) { |_, m|
#    #["spec/#{m[1]}_spec.rb"]
#    #["test/#{m[1]}_test.rb"]
#    ## for both specs and tests:
#    ["spec/#{m[1]}_spec.rb"]
#}
#end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
mspire-sequest-0.2.7 .autotest
mspire-sequest-0.2.6 .autotest
mspire-sequest-0.2.5 .autotest
ms-sequest-0.2.1 .autotest
ms-sequest-0.1.2 .autotest
ms-sequest-0.1.1 .autotest
ms-sequest-0.1.0 .autotest
ms-sequest-0.0.24 .autotest
ms-sequest-0.0.23 .autotest
ms-sequest-0.0.22 .autotest
ms-sequest-0.0.21 .autotest
ms-sequest-0.0.20 .autotest
ms-sequest-0.0.18 .autotest