Skip to content

Commit

Permalink
Merge pull request #47 from blkperl/add_beaker_task
Browse files Browse the repository at this point in the history
Add beaker and beaker_nodes tasks
  • Loading branch information
hunner committed Jan 27, 2014
2 parents d596899 + b933e0e commit 90d3e57
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/puppetlabs_spec_helper/rake_tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
t.pattern = 'spec/{classes,defines,unit,functions,hosts,integration}/**/*_spec.rb'
end

desc "Run beaker acceptance tests"
RSpec::Core::RakeTask.new(:beaker) do |t|
t.rspec_opts = ['--color']
t.pattern = 'spec/acceptance'
end

desc "Generate code coverage information"
RSpec::Core::RakeTask.new(:coverage) do |t|
t.rcov = true
Expand Down Expand Up @@ -99,6 +105,14 @@ def fixtures(category)
Rake::Task[:spec_clean].invoke
end

desc "List available beaker nodesets"
task :beaker_nodes do
Dir['spec/acceptance/nodesets/*.yml'].sort!.select { |node|
node.slice!('.yml')
puts File.basename(node)
}
end

desc "Build puppet module package"
task :build do
# This will be deprecated once puppet-module is a face.
Expand Down

0 comments on commit 90d3e57

Please sign in to comment.