cucumber.rake
上传用户:netsea168
上传日期:2022-07-22
资源大小:4652k
文件大小:1k
- $LOAD_PATH.unshift(RAILS_ROOT + '/vendor/plugins/cucumber/lib') if File.directory?(RAILS_ROOT + '/vendor/plugins/cucumber/lib')
- unless ARGV.any? {|a| a =~ /^gems/}
- begin
- require 'cucumber/rake/task'
- Cucumber::Rake::Task.new(:features) do |t|
- t.fork = true
- t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'pretty')]
- end
- task :features => 'db:test:prepare'
- rescue LoadError
- desc 'Cucumber rake task not available'
- task :features do
- abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin'
- end
- end
- end