-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
38 lines (29 loc) · 823 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
require 'rubygems'
require 'cucumber/rake/task'
require 'rake'
require 'spec/rake/spectask'
desc "Run all examples with RCov"
Spec::Rake::SpecTask.new(:spec) do |t|
t.spec_files = FileList['test/spec/**/*.rb']
t.rcov = true
t.rcov_opts = ['--exclude', 'spec']
t.rcov_dir = 'coverage/spec/'
end
require 'spec/rake/verify_rcov'
RCov::VerifyTask.new(:verify_rcov => :spec) do |t|
t.threshold = 100.0
t.index_html = 'coverage/spec/verify/index.html'
end
Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = "--format pretty"
t.rcov = true
t.rcov_opts << %[-o "test/features/cucumber"]
end
task :doc do |t|
`rdoc -aUd src/ -o doc/api`
end
task :install do
`cp -R lib /usr/lib/ruby/gems/1.8/gems/proteus-0.9.0/`
`cp bin/pro /usr/bin`
end
task :default => [:spec, :features, :verify_rcov]