File: suite.rb

package info (click to toggle)
coderay 1.1.3-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,368 kB
  • sloc: ruby: 9,987; makefile: 14; sh: 4; python: 1
file content (17 lines) | stat: -rwxr-xr-x 463 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'simplecov' if RUBY_VERSION >= '1.9'
require 'test/unit'
require 'rubygems'

$VERBOSE = $CODERAY_DEBUG = true
$:.unshift 'lib'

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

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

helpers = %w(file_type word_list tokens)
for test_case in helpers + (suite - helpers)
  load File.join(mydir, test_case + '.rb')
end