It is possible to test Puppet code using rspec-puppet, but modules that are supported by the community like NTP do not seem to run test regularly like is done for all Geerlingguy's Ansible roles, e.g. Apache.

The aim is to find a Puppet module on Github that shows the best practices regarding testing using rspec-puppet on build using a CI like Travis. When such a module is found one could read and understand the .travis.yml and apply it to custom modules.

1 Answer 1


Go to https://forge.puppet.com and look for modules with a high "Quality Score"

For example https://forge.puppet.com/puppetlabs/stdlib/scores.

Then you can take a look at the Project URL and view it's .travis.yml and the tests in spec/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.