Skip to content
Newer
Older
100644 81 lines (65 sloc) 2.39 KB
be03501 @headius Add a config for 1.9 spec runs.
headius authored
1 # Configuration file for Ruby 1.9-compatible Ruby implementations.
2 #
3 # Unless you passed to --config (or -B) to MSpec, MSpec will automatically
4 # use this config file if the Ruby interpreter with which MSpec advertises
5 # itself with RUBY_VERSION =~ /1.9/
6
7 DIR = File.join(File.dirname(__FILE__), "ruby")
8
9 class MSpecScript
10 # Language features specs
11 set :language, [ DIR + '/language' ]
12
13 # Core library specs
14 set :core, [
15 DIR + '/core',
16
17 '^' + DIR + '/core/continuation'
18 ]
19
20 # Standard library specs
21 set :library, [
22 DIR + '/library',
23
24 # obsolete libraries
25 '^' + DIR + '/library/cgi-lib',
26 '^' + DIR + '/library/date2',
27 '^' + DIR + '/library/enumerator',
28 '^' + DIR + '/library/eregex',
29 '^' + DIR + '/library/finalize',
30 '^' + DIR + '/library/ftools',
31 '^' + DIR + '/library/generator',
32 '^' + DIR + '/library/getopts',
33 '^' + DIR + '/library/importenv',
34 '^' + DIR + '/library/jcode',
35 '^' + DIR + '/library/mailread',
36 '^' + DIR + '/library/parsearg',
37 '^' + DIR + '/library/parsedate',
38 '^' + DIR + '/library/ping',
39 '^' + DIR + '/library/readbytes',
40 '^' + DIR + '/library/rubyunit',
41 '^' + DIR + '/library/runit',
42 '^' + DIR + '/library/soap',
43 '^' + DIR + '/library/wsdl',
44 '^' + DIR + '/library/xsd',
45 '^' + DIR + '/library/Win32API',
46
47 '^' + DIR + '/library/test/unit/collector',
48 '^' + DIR + '/library/test/unit/ui',
49 '^' + DIR + '/library/test/unit/util',
50
51 '^' + DIR + '/library/dl', # reimplemented and API changed
52 ]
53
54 # An ordered list of the directories containing specs to run
55 set :files, get(:language) + get(:core) + get(:library)
56
57 # This set of files is run by mspec ci
58 set :ci_files, get(:files)
59
60 # Optional library specs
61 set :ffi, DIR + '/optional/ffi'
62
63 # A list of _all_ optional library specs
64 set :optional, [get(:ffi)]
65
66 # The default implementation to run the specs.
67 # TODO: this needs to be more sophisticated since the
68 # executable is not consistently named.
69 set :target, 'jruby'
70
71 set :backtrace_filter, /mspec\//
72
73 set :tags_patterns, [
74 [%r(language/), 'tags/1.9/language/'],
75 [%r(core/), 'tags/1.9/core/'],
76 [%r(command_line/), 'tags/1.9/command_line/'],
77 [%r(library/), 'tags/1.9/library/'],
78 [/_spec.rb$/, '_tags.txt']
79 ]
80 end
Something went wrong with that request. Please try again.