Answers: <p>Go to <a href="https://forge.puppet.com" rel="nofollow noreferrer">https://forge.puppet.com</a> and look for modules with a high "Quality Score"</p>
  
  <p>For example <a href="https://forge.puppet.com/puppetlabs/stdlib/scores" rel="nofollow noreferrer">https://forge.puppet.com/puppetlabs/stdlib/scores</a>.</p>
  
  <p>Then you can take a look at the Project URL and view it's .travis.yml and the tests in spec/</p>
  
Answers: CC BY-SA 3.0
Answers: 2017-05-17T11:35:01.660Z
Answers: 2017-05-17T11:35:01.660Z
Answers: szinck
Body: <p>It is possible to test Puppet code using rspec-puppet, but modules that are supported by the community like <a href="https://github.com/puppetlabs/puppetlabs-ntp" rel="nofollow noreferrer">NTP</a> do not seem to run test regularly like is done for all Geerlingguy's Ansible roles, e.g. <a href="https://github.com/geerlingguy/ansible-role-apache" rel="nofollow noreferrer">Apache</a>.</p>
  
  <p>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.</p>
  
Tags: <ansible><puppet><rspec-puppet>
Title: What Puppet modules do include best practices regarding CI and rspec-puppet like Geerlingguy's Ansible roles?
UserDisplayName: 030
ThreadText: # What Puppet modules do include best practices regarding CI and rspec-puppet like Geerlingguy's Ansible roles?
  
  (Asked by: username_0 on 2017-05-17)
  
  It is possible to test Puppet code using rspec-puppet, but modules that are supported by the community like [NTP](https://github.com/puppetlabs/puppetlabs-ntp) do not seem to run test regularly like is done for all Geerlingguy's Ansible roles, e.g. [Apache](https://github.com/geerlingguy/ansible-role-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.
  
  **Tags:** ansible, puppet, rspec-puppet
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-05-17. Score: 2 | Accepted answer
  
  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/
  
  
  ---
  
  