Merge pull request #373 from enovance/feature/372/sbadia

[spec] Update rake tasks (refs: #372)
This commit is contained in:
Emilien Macchi 2014-03-21 10:35:19 +01:00
commit 61d93d3ba7
3 changed files with 15 additions and 3 deletions

View File

@ -106,7 +106,7 @@ Limitations
Getting Involved Getting Involved
---------------- ----------------
Need a feature? Found a bug? Let me know! Need a feature? Found a bug? Let us know!
We are extremely interested in growing a community of OpenStack experts and users around these modules so they can serve as an example of consolidated best practices of how to deploy openstack. We are extremely interested in growing a community of OpenStack experts and users around these modules so they can serve as an example of consolidated best practices of how to deploy openstack.

View File

@ -17,7 +17,15 @@ PuppetSyntax.exclude_paths = exclude_paths
task(:default).clear task(:default).clear
task :default => [:spec_prep, :spec_standalone, :lint] task :default => :test
desc 'Run syntax, lint and spec tests' desc 'Run syntax, lint and spec tests'
task :test => [:syntax,:lint,:spec] task :test => [:syntax,:lint,:spec]
desc 'Run syntax, lint and spec tests (without fixture purge = train/airplane)'
task :test_keep => [:syntax,:lint,:spec_prep,:spec_standalone]
if ENV['COV']
desc 'Run syntax, lint, spec tests and coverage'
task :cov => [:syntax,:lint,:spec_prep,:spec_standalone]
end

View File

@ -1 +1,5 @@
require 'spec_helper'
if ENV['COV']
at_exit { RSpec::Puppet::Coverage.report! } at_exit { RSpec::Puppet::Coverage.report! }
end