For testing Puppet code and building modules, it is recommended to use the Puppet Development Kit (PDK).

We also recommend setting up rspec-puppet (https://rspec-puppet.com/) testing for modules. If you are using host manifests (generally discouraged), you can use "puppet parser validate <file>" to validate syntax. 

Article number: 
115511
Last updated: 
May 29, 2019
Service: