Sha256: 4a00422fd11e56af8b3c29cca94925532ad4a0c53c1ca44dbe2bff103d24a4ec

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

task :default => ['specs:all']

namespace :specs do
  require 'rspec/core/rake_task'

  @rspec_opts = ['--colour --format documentation']

  desc "Run all specs for albacore"
  RSpec::Core::RakeTask.new :all do |t|
    t.pattern = 'spec/**/*_spec.rb'
    t.rspec_opts = @rspec_opts
  end

  exceptNCov = []
  # generate tasks for each *_spec.rb file in the root spec folder
  FileList['spec/*_spec.rb'].each do |fname|
    spec = $1 if /spec\/(.+)_spec\.rb/ =~ fname
    exceptNCov << spec unless /ncover|ndepend/ =~ spec
    desc "Run #{spec} specs"
    RSpec::Core::RakeTask.new spec do |t|
      t.pattern = "spec/#{spec}*_spec.rb"
      t.rspec_opts = @spec_opts
    end
  end

  #quick hack to run all specs not in ncover or ndepend, to evaluate changes
  desc "excludes ncover  and ndepend specs"
  task :except_ncover => exceptNCov

  desc "MSDeploy functional specs"
  RSpec::Core::RakeTask.new :msdeploy do |t|
    t.pattern = 'spec/msdeploy*_spec.rb'
    t.rspec_opts = @rspec_opts
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
albacore-0.3.0 Rakefile