The following tools are recommendations for testing Puppet code and modules: 

If you are using host manifests (generally discouraged), you can use "puppet parser validate <file>" to validate syntax. 

Last updated
Article number
5646