The following tools are recommendations for testing Puppet code and modules:
- Puppet Development Kit 3.x.x - https://help.puppet.com/pdk/3/topics/pdk.htm
- metadata-json-lint, included in PDK, validates your module metadata file.
- puppet-lint, included in PDK, validates Puppet code against the recommended language style guide.
- rspec-puppet-facts included in PDK, provides support for running rspec tests for your module's supported operating systems.
- rspec-puppet, included in PDK, provides an RSpec test framework for Puppet - https://rspec-puppet.com
- OnceOver - https://github.com/dylanratcliffe/onceover
- RuboCop - https://rubocop.org, a Ruby code analyzer.
If you are using host manifests (generally discouraged), you can use "puppet parser validate <file>" to validate syntax.