Sha256: b8c4227c2523e79ab5254ec9605803c2e9c2b54d1b1240f280d7326686fa8621
Contents?: true
Size: 948 Bytes
Versions: 5
Compression:
Stored size: 948 Bytes
Contents
require 'rake' dependencies = ['environment', 'db:test:prepare'] unless defined?(Rails) dependencies.each do |t| task t do; end end end namespace :dad do task :cucumber => dependencies do |t, args| format = ENV['FORMAT'] || 'Daddy::Formatter::Html' options = [ 'DRIVER=' + (ENV['DRIVER'] || 'poltergeist'), 'PAUSE=' + (ENV['PAUSE'] || '0'), 'COVERAGE=' + (ENV['COVERAGE'] || 'true'), 'ACCEPTANCE_TEST=true', 'EXPAND=' + (ENV['EXPAND'] || 'true') ].join(' ') features = [] ARGV[1..-1].each do |arg| unless arg.index('=') task arg.to_sym do ; end features << arg.gsub(/:/, '\:') end end output = "features/reports/index.html" output = "test/reports" if format == 'junit' run "bundle exec cucumber --guess --quiet --no-multiline -r features --format pretty --format #{format} --out #{output} #{features.join(' ')} #{options}" end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
daddy-0.3.14 | lib/tasks/cucumber.rake |
daddy-0.3.13 | lib/tasks/cucumber.rake |
daddy-0.3.12 | lib/tasks/cucumber.rake |
daddy-0.3.11 | lib/tasks/cucumber.rake |
daddy-0.3.10 | lib/tasks/cucumber.rake |