File: Rakefile

package info (click to toggle)
ruby-temple 0.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 456 kB
  • sloc: ruby: 3,170; makefile: 4
file content (25 lines) | stat: -rw-r--r-- 516 bytes parent folder | download | duplicates (3)
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
require 'rake/testtask'

task default: :test
task :test do
  sh "bacon -Ilib -Itest --automatic --quiet"
end

#Rake::TestTask.new(:test) do |t|
#  t.libs << 'lib' << 'test'
#  t.pattern = 'test/**/test_*.rb'
#  t.verbose = false
#end

begin
  require 'rcov/rcovtask'
  Rcov::RcovTask.new do |t|
    t.libs << 'lib' << 'test'
    t.pattern = 'test/**/test_*.rb'
    t.verbose = false
  end
rescue LoadError
  task :rcov do
    abort "RCov is not available. In order to run rcov, you must: gem install rcov"
  end
end