Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 94 lines (77 sloc) 2.745 kb
3abe6cf Hongli Lai Add some documenting comments for the MSpec config files.
FooBarWidget 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
8b35254 Brian Shirai Added config files for 1.8 and 1.9.
brixen authored
7 class MSpecScript
90d7026 Brian Shirai Updated version specific config files with new spec collections.
brixen authored
8 # Language features specs
9 set :language, [ 'language' ]
10
11 # Core library specs
4d36f2c Brian Shirai Encoding fixes and cleanups for 1.9.
brixen authored
12 set :core, [
13 'core',
14 ]
90d7026 Brian Shirai Updated version specific config files with new spec collections.
brixen authored
15
16 # Standard library specs
17 set :library, [
eaa6bba Yuki Yugui Sonoda Excludes imcompatible libraries between 1.8 and 1.9 when verifying specs...
yugui authored
18 'library',
19
20 # obsolete libraries
21 '^library/cgi-lib',
22 '^library/date2',
b967e9f ujihisa Excludes incompatible librariy Enumerable::Enumerator for 1.9
ujihisa authored
23 '^library/enumerator',
eaa6bba Yuki Yugui Sonoda Excludes imcompatible libraries between 1.8 and 1.9 when verifying specs...
yugui authored
24 '^library/eregex',
25 '^library/finalize',
26 '^library/ftools',
27 '^library/generator',
28 '^library/getopts',
29 '^library/importenv',
30 '^library/jcode',
31 '^library/mailread',
32 '^library/parsearg',
33 '^library/parsedate',
34 '^library/ping',
35 '^library/readbytes',
36 '^library/rubyunit',
37 '^library/runit',
38 '^library/soap',
39 '^library/wsdl',
40 '^library/xsd',
41 '^library/Win32API',
42
43 '^library/test/unit/collector',
44 '^library/test/unit/ui',
45 '^library/test/unit/util',
46
47 '^library/dl', # reimplemented and API changed
48 ]
8b35254 Brian Shirai Added config files for 1.8 and 1.9.
brixen authored
49
90d7026 Brian Shirai Updated version specific config files with new spec collections.
brixen authored
50 # An ordered list of the directories containing specs to run
51 set :files, get(:language) + get(:core) + get(:library)
52
3b5b479 Brian Shirai Added tags_patterns and ci_files to 1.9 config.
brixen authored
53 # This set of files is run by mspec ci
54 set :ci_files, get(:files)
55
1ee7bbd Eloy Durán Added :ffi and :optional (which at some point could contain more optiona...
alloy authored
56 # Optional library specs
57 set :ffi, 'optional/ffi'
58
59 # A list of _all_ optional library specs
60 set :optional, [get(:ffi)]
61
247c811 Brian Shirai Use 'ruby' as 1.9 executable. Fixes #51.
brixen authored
62 # The default implementation to run the specs. Since use of RVM has become
63 # widespread, assume that 'ruby' is the executable even for 1.9.
64 set :target, 'ruby'
3b5b479 Brian Shirai Added tags_patterns and ci_files to 1.9 config.
brixen authored
65
d079776 runpaint Config: Filter /mspec\// from backtraces on 1.9.
runpaint authored
66 set :backtrace_filter, /mspec\//
67
3b5b479 Brian Shirai Added tags_patterns and ci_files to 1.9 config.
brixen authored
68 set :tags_patterns, [
4d36f2c Brian Shirai Encoding fixes and cleanups for 1.9.
brixen authored
69 [%r(language/), 'tags/1.9/language/'],
70 [%r(core/), 'tags/1.9/core/'],
71 [%r(command_line/), 'tags/1.9/command_line/'],
72 [%r(library/), 'tags/1.9/library/'],
73 [/_spec.rb$/, '_tags.txt']
3b5b479 Brian Shirai Added tags_patterns and ci_files to 1.9 config.
brixen authored
74 ]
aa89ef2 Brian Shirai Enable features for 1.8 and 1.9 configurations.
brixen authored
75
76 # Enable features
77 MSpec.enable_feature :fiber
3d18a78 Brian Shirai Changed :extended_fiber feature guard to :fiber_library.
brixen authored
78 MSpec.enable_feature :fiber_library
0e5129e Brian Shirai Reorganized #callcc specs for 1.8 and 1.9.
brixen authored
79 MSpec.enable_feature :continuation_library
aa89ef2 Brian Shirai Enable features for 1.8 and 1.9 configurations.
brixen authored
80 MSpec.enable_feature :fork
81 MSpec.enable_feature :encoding
8bce8ee Brian Shirai Added :encoding_transition feature for 1.8.7+.
brixen authored
82
83 # These are encoding-aware methods backported to 1.8.7+ (eg String#bytes)
84 MSpec.enable_feature :encoding_transition
9fc440b Brian Shirai Added with_feature guards for Readline specs.
brixen authored
85
86 # The Readline specs are not enabled by default because the functionality
87 # depends heavily on the underlying library, including whether certain
88 # methods are implemented or not. This makes it extremely difficult to
89 # make the specs consistently pass. Until a suitable scheme to handle
90 # all these issues, the specs will not be enabled by default.
91 #
92 # MSpec.enable_feature :readline
8b35254 Brian Shirai Added config files for 1.8 and 1.9.
brixen authored
93 end
Something went wrong with that request. Please try again.