forked from test-kitchen/busser-serverspec
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
34 lines (26 loc) · 739 Bytes
/
Rakefile
File metadata and controls
34 lines (26 loc) · 739 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
30
31
32
33
34
require 'coveralls/rake/task'
require "bundler/gem_tasks"
require 'cucumber/rake/task'
require 'cane/rake_task'
require 'tailor/rake_task'
Coveralls::RakeTask.new
Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = ['features', '-x', '--format progress']
end
desc "Run all test suites"
task :test => [:features]
desc "Run cane to check quality metrics"
Cane::RakeTask.new do |cane|
cane.canefile = './.cane'
end
Tailor::RakeTask.new
desc "Display LOC stats"
task :stats do
puts "\n## Production Code Stats"
sh "countloc -r lib"
puts "\n## Test Code Stats"
sh "countloc -r features"
end
desc "Run all quality tasks"
task :quality => [:cane, :tailor, :stats]
task :default => [:test, :quality, 'coveralls:push']