Sha256: 65c8674d9975a22869f072e78a922ae75ce707a1150812ca434c2531833dadfb
Contents?: true
Size: 1.35 KB
Versions: 2
Compression:
Stored size: 1.35 KB
Contents
require 'rake/clean' require 'rubygems' require 'rubygems/package_task' require 'rdoc/task' require 'cucumber' require 'cucumber/rake/task' require 'rubocop/rake_task' Rake::RDocTask.new do |rd| rd.main = "README.rdoc" rd.rdoc_files.include("README.rdoc","lib/**/*.rb","bin/**/*") rd.title = 'Your application title' end spec = eval(File.read('tileset_tooling.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 --publish-quiet --format html -o #{CUKE_RESULTS} --format progress -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 = ' --publish-quiet --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.pattern = 'test/**/*_test.rb' t.warning = false end desc 'Run RuboCop' RuboCop::RakeTask.new(:rubocop) do |task| task.fail_on_error = false end task :default => [:rubocop, :test, :features]
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tileset_tooling-0.1.0 | Rakefile |
tileset_tooling-0.0.2 | Rakefile |