-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathRakefile
47 lines (39 loc) · 1.08 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
43
44
45
46
47
require 'rake/testtask'
namespace :test do
Rake::TestTask.new(:all) do |t|
t.ruby_opts << "-r./tests/fixtures.rb"
t.test_files = FileList['tests/*_test.rb']
t.verbose = false
t.options = "-v"
end
Rake::TestTask.new(:app) do |t|
t.ruby_opts << "-r./tests/fixtures.rb"
t.test_files = FileList['tests/app_test.rb']
t.verbose = false
t.options = "-v"
end
Rake::TestTask.new(:dsl) do |t|
t.ruby_opts << "-r./tests/fixtures.rb"
t.test_files = FileList['tests/dsl_test.rb']
t.verbose = false
#t.options = "-v"
end
Rake::TestTask.new(:docs) do |t|
t.ruby_opts << "-r./tests/fixtures.rb"
t.test_files = FileList['tests/docs_test.rb']
t.verbose = false
#t.options = "-v"
end
end
desc "Run RSpec with code coverage"
task :coverage do
ENV["COVERAGE"] = "true"
Rake::Task["test:all"].execute
end
desc "Reinstall gem"
task :reinstall do
puts %x{rm -rf sinatra-rabbit-*.gem}
puts %x{gem uninstall sinatra-rabbit --all -I -x}
puts %x{gem build sinatra-rabbit.gemspec}
puts %x{gem install sinatra-rabbit-*.gem --local}
end