Skip to content

Commit

Permalink
Add beaker and beaker_nodes tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
blkperl committed Jan 25, 2014
1 parent d596899 commit b933e0e
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

1 comment on commit b933e0e

@solarkennedy
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm looking forward to seeing this in the next release!

Please sign in to comment.