forked from cucumber/cucumber-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cucumber.yml
28 lines (26 loc) · 1.14 KB
/
cucumber.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<%
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
rerun_opts = rerun.to_s.strip.empty? ? "--format progress features" : "--format pretty #{rerun}"
std_opts = "--format progress features --tags ~@wip -r features --strict"
std_opts << " --tags ~@drb" if defined?(JRUBY_VERSION)
begin
require 'rspec/expectations'
std_opts << ' --tags ~@rspec1'
rescue LoadError
# rspec 1
std_opts << ' --tags ~@rspec2'
end
wip_opts = "--color --tags @wip:3"
legacy_opts = ''
legacy_opts << " --tags ~@wire" if defined?(JRUBY_VERSION)
%>
default: <%= std_opts %> --tags ~@jruby features/.cucumber
jruby: <%= std_opts %> --tags ~@spork --tags ~@wire
jruby_win: <%= std_opts %> --tags ~@spork --tags ~@wire CUCUMBER_FORWARD_SLASH_PATHS=true
windows_mri: <%= std_opts %> --tags ~@jruby --tags ~@spork --tags ~@wire --tags ~@needs-many-fonts CUCUMBER_FORWARD_SLASH_PATHS=true
ruby_1_9: <%= std_opts %> --tags ~@jruby
ruby_2_0: <%= std_opts %> --tags ~@jruby
wip: --wip <%= wip_opts %> features
none: --format pretty
rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip
legacy: legacy_features -r legacy_features -f progress <%= legacy_opts %>