forked from hoppinger/capistrano-middleman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
50 lines (38 loc) · 915 Bytes
/
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
43
44
45
46
47
48
49
50
#!/usr/bin/env rake
# require 'bundler'
# Bundler.require :default, :test, :development
require 'filegen'
require 'fedux_org_stdlib/rake_tasks'
require 'coveralls/rake/task'
Coveralls::RakeTask.new
desc 'Default task => run test suite'
task default: :test
desc 'Run test suite'
task :test do
Rake::Task['test:before'].execute
begin
%w(test:rubocop test:rspec test:cucumber test:after).each { |t| Rake::Task[t].execute }
ensure
Rake::Task['test:after'].execute
end
end
namespace :test do
desc 'Test with coveralls'
task coveralls: %w(test coveralls:push)
require 'rubocop/rake_task'
RuboCop::RakeTask.new
desc 'Run rspec'
task :rspec do
sh 'bundle exec rspec'
end
desc 'Run cucumber'
task :cucumber do
# sh 'bundle exec cucumber -p all'
end
desc 'Setup test environment'
task :before do
end
desc 'Teardown test environment'
task :after do
end
end