-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
31 lines (26 loc) · 684 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
require "bundler/gem_tasks"
require "rake/testtask"
require "rdoc/task"
# generate docs
RDoc::Task.new do |rd|
rd.main = "README.md"
rd.title = "Lolcommits Dotcom"
rd.rdoc_dir = "doc"
rd.options << "--all"
rd.rdoc_files.include("README.md", "LICENSE", "lib/**/*.rb")
end
# run tests
Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.libs << "lib"
t.test_files = FileList["test/**/*_test.rb"]
end
# run tests with code coverage (default)
namespace :test do
desc "Run all tests and features and generate a code coverage report"
task :coverage do
ENV['COVERAGE'] = 'true'
Rake::Task['test'].execute
end
end
task :default => ['test:coverage']