quick and simple integration tests run inside of a docker container
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
doc
docker_images Clean environment for inplace builds Oct 6, 2018
exe
lib
res
spec
.gitignore
.rspec
.travis.yml
Gemfile
LICENSE
README.md
Rakefile
pdqtest.gemspec

README.md

Build Status

PDQTest

PDQTest - Puppet Docker Quick-test - is the quickest and easiest way to test your puppet modules for Linux and Windows.

PDQTest features:

  • Static analysis testing (PDK):
    • Metadata
    • Syntax
    • Linting
    • RSpec
  • Acceptance testing for Linux and Windows:

PDQTest acceptance tests can be retrofitted to and PDK enabled module by running pdqtest init.

PDQTest runs static analysis 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.

This way you can destructively test your module without risking the host.

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

PDQTest 2.0 Release notes

PDQTest 2.0 new features:

PDQTest Manual

  1. Installation
  2. Enabling testing
  3. Running tests
  4. Acceptance tests
  5. Windows
  6. PDK Integration
  7. Puppet module dependencies
  8. Test generation
  9. Puppet facts
  10. Hiera
  11. Caching
  12. Emoji
  13. Upgrading
  14. Tips and tricks
  15. Troubleshooting
  16. Examples
  17. Development
  18. Inplace execution
  19. PDQTest 1.x -> 2.x Upgrade guide