File: cucumber.yml

package info (click to toggle)
ruby-vcr 4.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,172 kB
  • sloc: ruby: 8,405; sh: 177; makefile: 3
file content (17 lines) | stat: -rw-r--r-- 850 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<%
base_opts = '--require features/step_definitions --require features/support'
std_opts = "--format progress --strict"
std_opts << "  --backtrace" if ENV["CI"]
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
rerun_opts = rerun.to_s.strip.empty? ? "--format progress features" : "--format pretty #{rerun}"

exclusions = []
exclusions << "--tags ~@exclude-#{RUBY_VERSION.split('.').first(2).join}"
exclusions << "--tags ~@exclude-#{RUBY_VERSION}p#{RUBY_PATCHLEVEL}"
exclusions << "--tags ~@exclude-#{RUBY_ENGINE}" if defined?(RUBY_ENGINE)
exclusions = exclusions.join(' ')
%>
default: <%= base_opts %> <%= std_opts %> --tags ~@wip <%= exclusions %> features
wip:     <%= base_opts %> --tags @wip <%= exclusions %> features
rerun:   <%= base_opts %> <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip <%= exclusions %>