forked from chefspec/chefspec
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
29 lines (23 loc) · 642 Bytes
/
Rakefile
File metadata and controls
29 lines (23 loc) · 642 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
26
27
28
29
require 'bundler/gem_tasks'
require 'cucumber/rake/task'
require 'rspec/core/rake_task'
require 'yard/rake/yardoc_task'
require 'chef/version'
YARD::Rake::YardocTask.new
RSpec::Core::RakeTask.new(:unit) do |t|
t.rspec_opts = [].tap do |a|
a.push('--color')
a.push('--format progress')
end.join(' ')
end
Cucumber::Rake::Task.new(:acceptance) do |t|
t.cucumber_opts = [].tap do |a|
a.push('--color')
a.push('--format progress')
a.push('--strict')
a.push('--tags ~@not_chef_' + Chef::VERSION.gsub('.', '_'))
end.join(' ')
end
desc 'Run all tests'
task :test => [:unit, :acceptance]
task :default => [:test]