This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
#!/usr/bin/env ruby |
| 2 |
|
| 3 |
require 'rake' |
| 4 |
|
| 5 |
require 'spec/rake/spectask' |
| 6 |
|
| 7 |
desc "Generate rspec report" |
| 8 |
Spec::Rake::SpecTask.new do |t| |
| 9 |
t.spec_opts = ["--color"] |
| 10 |
t.fail_on_error = false |
| 11 |
end |
| 12 |
|
| 13 |
desc "Generate rspec (and rcov) reports in HTML" |
| 14 |
Spec::Rake::SpecTask.new('spec_html') do |t| |
| 15 |
t.fail_on_error = false |
| 16 |
|
| 17 |
t.spec_opts = ["--color", "--format", "progress", "--format", "html:doc/reports/spec.html", "--diff"] |
| 18 |
|
| 19 |
t.rcov = true |
| 20 |
t.rcov_dir = "doc/reports/coverage" |
| 21 |
t.rcov_opts = ["--exclude", "spec"] |
| 22 |
end |