Sha256: e3c2bc78ac200bfe0e001d50420cce939573ad5433e9a07f620773676b452657
Contents?: true
Size: 1.51 KB
Versions: 2
Compression:
Stored size: 1.51 KB
Contents
require 'bundler/gem_tasks' require 'cucumber' require 'cucumber/rake/task' require 'rspec/core/rake_task' require 'yard' require_relative 'lib/tailor/rake_task' Tailor::RakeTask.new do |task| task.formatters = %w[yaml] task.tailor_opts = %w[--output-file=output.yml] end #------------------------------------------------------------------------------ # spec #------------------------------------------------------------------------------ RSpec::Core::RakeTask.new namespace :spec do desc 'Run specs with Ruby warnings turned on' RSpec::Core::RakeTask.new(:warn) do |t| t.ruby_opts = %w(-w) end desc 'Run unit tests' RSpec::Core::RakeTask.new(:unit) do |t| t.pattern = './spec/unit/**/*_spec.rb' end desc 'Run functional tests' RSpec::Core::RakeTask.new(:functional) do |t| t.pattern = './spec/functional/**/*_spec.rb' end end #------------------------------------------------------------------------------ # features #------------------------------------------------------------------------------ Cucumber::Rake::Task.new(:features) do |t| t.cucumber_opts = %w(--format progress features --tags ~@wip) end #------------------------------------------------------------------------------ # yard #------------------------------------------------------------------------------ YARD::Rake::YardocTask.new do |t| t.files = %w(lib/**/*.rb - History.md) t.options = %w(--private --protected --verbose) end desc 'Run RSpec examples and Cucumber features' task test: [:spec, :features] task default: [:test]
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tailor-1.4.1 | Rakefile |
tailor-1.4.0 | Rakefile |