Check out rspec-puppet home page then just get https://github.com/garethr/puppet-module-skeleton and you should be ready to go. The thing that was hidden at least for me were the resource testing types from http://serverspec.org/resource_types.html so look there too(some of them are used in the skeleton so your setup should be ready) :)
For the skeleton just run bundle install bundle exec guard -c in one terminal(a second monitor helps) and then start coding in another window(in the first monitor). This is basically my setup at the moment for new modules :) -- Nikola On Mon, Mar 24, 2014 at 10:24:35AM -0700, Alex Scoble wrote: > Hi All, > > Was wondering if anyone knew of any good books or resources for learning > Test Driven Development of Puppet including puppet-rspec, beaker and > Jenkins. Yes, I know that beaker is more for acceptance testing than unit > testing, but I still see it as part of the testing tool chain that Puppet > pros should ultimately know how to use. > > I'm looking for resources that really start with the basics for each > subject and then help people ramp up to more advanced usage. > > Yes, I know there's > this http://puppetlabs.com/blog/test-driven-development-with-puppet and > some other blog posts, but they don't really start basic enough or go deep > enough. > > What I'm looking for are resources that help me build our testing tool > chain and also show how to use the tool chain once it's built. > > Thanks, > > Alex > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/b1fd7384-dbb8-49d4-b85f-a39602f1b06a%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/20140328161121.GA29957%40nikolavp-desktop. For more options, visit https://groups.google.com/d/optout.