summaryrefslogtreecommitdiff
path: root/test/functional/suite.rb
blob: f87ca0fe9b1bc6f6b7c725d076988ab8d510cb88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'simplecov'
require 'test/unit'

$VERBOSE = $CODERAY_DEBUG = true
$:.unshift File.expand_path('../../../lib', __FILE__)
require 'coderay'

mydir = File.dirname(__FILE__)
suite = Dir[File.join(mydir, '*.rb')].
  map { |tc| File.basename(tc).sub(/\.rb$/, '') } - %w'suite for_redcloth'

puts "Running basic CodeRay #{CodeRay::VERSION} tests: #{suite.join(', ')}"

for test_case in suite
  load File.join(mydir, test_case + '.rb')
end