diff options
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..cac9471 --- /dev/null +++ b/Rakefile @@ -0,0 +1,22 @@ +require 'rake' +require 'rspec/core/rake_task' + +task :default do + sh %{rake -T} +end + +# Aliases for spec. The (s) versions are used by rvm specs/tests. +task :test => [:spec] +task :tests => [:spec] +task :specs => [:spec] + +desc 'Run all RSpec tests' +RSpec::Core::RakeTask.new(:spec) do |t| + t.rspec_opts = ['--color'] +end + +desc 'Generate code coverage' +RSpec::Core::RakeTask.new(:coverage) do |t| + t.rcov = true + t.rcov_opts = ['--exclude', 'spec'] +end |