Sha256: 79383e8061bbecd40de8e35b1b49e3d32e3cbab0855841aff2ca988aac2f8ff4

Contents?: true

Size: 808 Bytes

Versions: 7

Compression:

Stored size: 808 Bytes

Contents

require 'rake'
require 'rake/testtask'
require 'rubygems'
require 'taglob/rake/tasks'
require 'spec/rake/spectask'

def tags
  ENV['TAGS']
end

def format_options(file_name)
  file_name = "artifacts/#{file_name}/index.html"
  dir_name = File.dirname(file_name)
  FileUtils.mkdir_p(dir_name) unless File.directory?(dir_name)
  ["--format","html:#{file_name}","--format","p"]
end

desc "Run all functional specs"
Spec::Rake::SpecTask.new :spec do |t|
  t.spec_files = Dir.taglob('test/specs/**/*_spec.rb',tags)
  t.spec_opts << format_options("functional/all")
end
task :specs => :spec

require 'cucumber/rake/task'
Cucumber::Rake::Task.new do |t|
  t.cucumber_opts = '--format pretty'
  t.step_pattern = "lib/steps/**/*.rb"
  t.feature_pattern = "test/features/**/*.feature"
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bret-watircraft-0.4.0 lib/taza/tasks.rb
bret-watircraft-0.4.1 lib/taza/tasks.rb
bret-watircraft-0.4.2 lib/taza/tasks.rb
bret-watircraft-0.4.3 lib/taza/tasks.rb
bret-watircraft-0.4.4 lib/taza/tasks.rb
bret-watircraft-0.4.5 lib/taza/tasks.rb
bret-watircraft-0.5.0 lib/taza/tasks.rb