-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
42 lines (36 loc) · 1.29 KB
/
Rakefile
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
30
31
32
33
34
35
36
37
38
39
40
41
42
# A Rakefile defines tasks to help maintain your project.
# Rake provides several task templates that are useful.
# require "rspec/core/rake_task"
require "bundler/gem_tasks"
#------------------------------------------------------------------#
# Rake Default Task
#------------------------------------------------------------------#
# Do not run integration by default
task default: %I{test:unit test:functional}
#------------------------------------------------------------------#
# Test Runner Tasks
#------------------------------------------------------------------#
require "rake/testtask"
namespace :test do
{
unit: "test/unit/*_test.rb",
functional: "test/integration/*_test.rb",
integration: "test/function/*_test.rb",
}.each do |task_name, glob|
Rake::TestTask.new(task_name) do |t|
t.libs.push "lib"
t.libs.push "test"
t.test_files = FileList[glob]
t.verbose = true
t.warning = false
end
end
end
# #------------------------------------------------------------------#
# # Code Style Tasks
# #------------------------------------------------------------------#
require "chefstyle"
require "rubocop/rake_task"
RuboCop::RakeTask.new(:lint) do |task|
task.options << "--display-cop-names"
end