diff options
author | jftucker <jftucker@gmail.com> | 2008-06-25 00:27:08 +0200 |
---|---|---|
committer | jftucker <jftucker@gmail.com> | 2008-06-25 00:27:08 +0200 |
commit | 16fec95e34ffb192d726dbb9bc56979d978ab98a (patch) | |
tree | 8f6f52498601327462e979ec2611f7e5f76a344d /lib/autotest/discover.rb | |
parent | fcf008d0ae93712b9fa0aa3e2bd9b6b74719cf4f (diff) | |
download | bacon-16fec95e34ffb192d726dbb9bc56979d978ab98a.tar.gz bacon-16fec95e34ffb192d726dbb9bc56979d978ab98a.tar.xz bacon-16fec95e34ffb192d726dbb9bc56979d978ab98a.zip |
adding autotest support
The autotest auto discovery uses bacons test/unit output. It does not currently call specific examples (TODO). It currently attempts to fix the rspec auto discovery by removing it if it finds a .bacon under test/ or spec/. In fact, these are the only conditions under which the bacon autotest will load. darcs-hash:20080624222708-28a3f-839431c7732599ab78c7279d8dffcf4f4ee3c9e8.gz
Diffstat (limited to 'lib/autotest/discover.rb')
-rw-r--r-- | lib/autotest/discover.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/autotest/discover.rb b/lib/autotest/discover.rb new file mode 100644 index 0000000..8012c67 --- /dev/null +++ b/lib/autotest/discover.rb @@ -0,0 +1,9 @@ +Autotest.add_discovery do + if File.exist?('spec/.bacon') || File.exist?('test/.bacon') + class Autotest + @@discoveries.delete_if { |d| d.inspect =~ /rspec/ } + warn 'Removing rspec from autotest!' + end + 'bacon' + end +end \ No newline at end of file |