3 require('spec/rake/spectask')
4 require('spec/rake/verify_rcov')
8 require('autotest/rspec')
11 Spec::Rake::SpecTask.new(:spec) do |t|
12 t.spec_files = 'spec/**/*.rb'
13 t.spec_opts = ['--color', '--format', 'html']
14 t.out = 'doc/spec/index.html'
16 t.rcov_opts = ['--html', '--exclude', "#{ENV['HOME']}/.autotest,spec/"] #, '--xrefs']
17 t.rcov_dir = 'doc/rcov'
18 t.fail_on_error = true
21 desc "Run specs with coverage verification"
22 RCov::VerifyTask.new(:coverage => :spec) do |t|
24 t.index_html = 'doc/rcov/index.html'