summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorJeff McCune <jeff@puppetlabs.com>2011-12-30 15:49:03 -0800
committerJeff McCune <jeff@puppetlabs.com>2011-12-30 15:49:03 -0800
commit4c2bba86f81695023cec68bfe112591cfeec7c80 (patch)
treed72ad97a6798280dde8013a6ce3707688386697e /Rakefile
parent842b0aa19cecf8251c69cb29fba59c985841c615 (diff)
parent0be3090f0f01e9bf41827fa3982793e9e71293f3 (diff)
downloadpuppet-stdlib-4c2bba86f81695023cec68bfe112591cfeec7c80.tar.gz
puppet-stdlib-4c2bba86f81695023cec68bfe112591cfeec7c80.tar.bz2
Merge pull request #26 from jeffmccune/ticket/2.1.x/11607_fix_ci_tests_for_stdlib
(#11607) Add Rakefile to enable spec testing
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
new file mode 100644
index 0000000..01b2a31
--- /dev/null
+++ b/Rakefile
@@ -0,0 +1,16 @@
+require 'rake'
+require 'rspec/core/rake_task'
+
+task :default => [:test]
+
+desc 'Run RSpec'
+RSpec::Core::RakeTask.new(:test) do |t|
+ t.pattern = 'spec/{unit}/**/*.rb'
+ 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