forked from Albacore/albacore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
25 lines (20 loc) · 653 Bytes
/
Rakefile
File metadata and controls
25 lines (20 loc) · 653 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
require 'bundler/setup'
Bundler::GemHelper.install_tasks
task :default => :'specs:all'
namespace :specs do
require 'rspec/core/rake_task'
desc "Run all specs"
RSpec::Core::RakeTask.new(:all)
# generate tasks for each *_spec.rb file in the root spec folder
exceptNCov = []
FileList['spec/*_spec.rb'].each do |fname|
spec = $1 if /spec\/(.+)_spec\.rb/ =~ fname
exceptNCov << spec unless /ncover|ndepend/ =~ spec
desc "Run the #{spec} spec"
RSpec::Core::RakeTask.new spec do |t|
t.pattern = "spec/#{spec}*_spec.rb"
end
end
desc "Run specs:all except :ncover, :ndepend"
task :except_ncover => exceptNCov
end