forked from cucumber/cucumber-ruby
-
Notifications
You must be signed in to change notification settings - Fork 1
/
cucumber.yml
20 lines (20 loc) · 827 Bytes
/
cucumber.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<%
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 pretty features --strict --tags ~@wip"
begin
require 'rspec/expectations'
std_opts << ' --tags ~@rspec1'
rescue LoadError
# rspec 1
std_opts << ' --tags ~@rspec2'
end
%>
default: <%= std_opts %>
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 ~@spork --tags ~@wire --tags ~@needs-many-fonts CUCUMBER_FORWARD_SLASH_PATHS=true
ruby_1_9: <%= std_opts %> --tags ~@fails_on_1_9
wip: --tags @wip:3 --wip features
none: --format pretty
rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip