Run cucumber if features directory exists + removed unused task
This commit is contained in:
parent
3a7848da9e
commit
b9cdc2bba4
1 changed files with 1 additions and 9 deletions
|
@ -21,15 +21,7 @@ Cucumber::Rake::Task.new do |t|
|
|||
exempt_tags << '--tags ~@nowindows' if Gem.win_platform?
|
||||
exempt_tags << '--tags ~@travishatesme' if ENV['TRAVIS'] == 'true'
|
||||
t.cucumber_opts = "--require features --color #{exempt_tags.join(' ')} --strict"# --format #{ENV['CUCUMBER_FORMAT'] || 'Fivemat'}"
|
||||
end
|
||||
|
||||
Cucumber::Rake::Task.new(:cucumber_wip) do |t|
|
||||
exempt_tags = ['--tags @wip']
|
||||
exempt_tags << '--tags ~@nojava' if RUBY_PLATFORM == 'java'
|
||||
exempt_tags << '--tags ~@encoding' unless Object.const_defined?(:Encoding)
|
||||
exempt_tags << '--tags ~@nowindows' if Gem.win_platform?
|
||||
t.cucumber_opts = "--color #{exempt_tags.join(' ')} --strict"# --format #{ENV['CUCUMBER_FORMAT'] || 'Fivemat'}"
|
||||
end
|
||||
end if Dir.exists? 'features'
|
||||
|
||||
require 'rspec/core/rake_task'
|
||||
desc 'Run RSpec'
|
||||
|
|
Loading…
Add table
Reference in a new issue