Skip to content

Commit

Permalink
Fix cucumber deprecations
Browse files Browse the repository at this point in the history
```
Deprecated: Found tags option '~@wip'. Support for '~@tag' will be removed from the next release of Cucumber. Please use 'not @tag' instead.
Deprecated: Found tags option '~@exclude-ruby'. Support for '~@tag' will be removed from the next release of Cucumber. Please use 'not @tag' instead
```
  • Loading branch information
deivid-rodriguez authored and PragTob committed Nov 30, 2019
1 parent 0f03e33 commit 96729a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cucumber.yml
@@ -1,13 +1,13 @@
<%
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} --strict --tags ~@wip"
std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} --strict --tags 'not @wip'"
interp_opts = if defined?(RUBY_ENGINE)
" --tags ~@exclude-#{RUBY_ENGINE}"
" --tags 'not @exclude-#{RUBY_ENGINE}'"
else
''
end
%>
default: <%= std_opts %><%= interp_opts %> features
wip: --tags @wip:30 --wip features<%= interp_opts %>
rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip<%= interp_opts %>
rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags 'not @wip' <%= interp_opts %>

0 comments on commit 96729a2

Please sign in to comment.