Build Status

PDQTest

PDQTest - Puppet Docker Quick-test - is the quickest and easiest way to test your puppet modules. PDQTest features tests for:

  • Linting
  • Syntax
  • RSpec
  • Acceptance (BATS-core)

And can generate code to retrofit testing to a new or existing module, along with skeleton RSpec and acceptance tests to get you started.

PDQTest runs linting, syntax and RSpec tests within the machine it is running from and then loads a docker container to perform acceptance testing, sharing the puppet module and cached dependencies from your host.

demo Adding PDQTest to a project and running acceptance tests in Docker

PDQTest Manual

  1. Installation
  2. Enabling testing
  3. Running tests
  4. Test generation
  5. Acceptance tests
  6. Puppet module dependencies
  7. Puppet facts
  8. Hiera
  9. Caching
  10. Upgrading
  11. Emoji
  12. Examples
  13. Tips and tricks
  14. Troubleshooting
  15. Development