Sha256: 4b922dcf178e1452d4e7203725f9cd2ead263e650f3fe64b7628d615102d2d7b
Contents?: true
Size: 1022 Bytes
Versions: 3
Compression:
Stored size: 1022 Bytes
Contents
require 'rake/clean' require 'rubygems' require 'rubygems/package_task' require 'cucumber' require 'cucumber/rake/task' spec = eval(File.read('expandsync.gemspec')) Gem::PackageTask.new(spec) do |pkg| end CUKE_RESULTS = 'results.html' CLEAN << CUKE_RESULTS desc 'Run features' Cucumber::Rake::Task.new(:features) do |t| opts = "features --format html -o #{CUKE_RESULTS} --format pretty -x" opts += " --tags #{ENV['TAGS']}" if ENV['TAGS'] t.cucumber_opts = opts t.fork = false end desc 'Run features tagged as work-in-progress (@wip)' Cucumber::Rake::Task.new('features:wip') do |t| tag_opts = ' --tags ~@pending' tag_opts = ' --tags @wip' t.cucumber_opts = "features --format html -o #{CUKE_RESULTS} --format pretty -x -s#{tag_opts}" t.fork = false end task :cucumber => :features task 'cucumber:wip' => 'features:wip' task :wip => 'features:wip' require 'rake/testtask' Rake::TestTask.new do |t| t.libs << "test" t.test_files = FileList['test/*_test.rb'] end task :default => [:test,:features]
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
expandsync-0.1.3 | Rakefile |
expandsync-0.1.2 | Rakefile |
expandsync-0.1.1 | Rakefile |