3 require('spec/rake/spectask')
4 require('spec/rake/verify_rcov')
5 #require('rcov_report')
9 require('autotest/rspec')
11 meta = Twitter::Meta.new(File.join(File.dirname(__FILE__), '..'))
15 Spec::Rake::SpecTask.new(:html) do |t|
16 t.spec_files = meta.spec_files
17 t.spec_opts = ['--format', 'html:doc/spec/index.html', '--color']
18 # t.out = 'doc/spec/index.html'
20 t.rcov_opts = ['--html', '--exclude', "#{ENV['HOME']}/.autotest,spec,/usr/lib/ruby,#{ENV['HOME']}/.rvm"]
21 t.rcov_dir = 'doc/rcov'
22 t.fail_on_error = true
25 desc "Run specs and output to console"
26 Spec::Rake::SpecTask.new(:console) do |t|
27 t.spec_files = meta.spec_files
28 t.spec_opts = ['--color']
32 desc "Run specs with coverage verification"
33 RCov::VerifyTask.new(:coverage => ["spec:console", "spec:html"]) do |t|
35 t.index_html = 'doc/rcov/index.html'