From 0aebfa032c71cb4086fec6897a3cbb139e9befe4 Mon Sep 17 00:00:00 2001 From: murphy Date: Tue, 29 Jun 2010 06:28:24 +0000 Subject: Cleaning up functional tests: Automatically load all files in the folder. --- test/functional/suite.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/functional/suite.rb b/test/functional/suite.rb index 3917689..4189953 100755 --- a/test/functional/suite.rb +++ b/test/functional/suite.rb @@ -1,12 +1,13 @@ require 'test/unit' +$:.unshift 'lib' +require 'coderay' MYDIR = File.dirname(__FILE__) +suite = Dir[File.join(MYDIR, '*.rb')]. + map { |tc| File.basename(tc).sub(/\.rb$/, '') } - %w'suite for_redcloth' -$:.unshift 'lib' -require 'coderay' -puts "Running basic CodeRay #{CodeRay::VERSION} tests..." +puts "Running basic CodeRay #{CodeRay::VERSION} tests: #{suite.join(', ')}" -suite = %w(basic examples load_plugin_scanner word_list) for test_case in suite load File.join(MYDIR, test_case + '.rb') end -- cgit v1.2.1