On Thu, Dec 13, 2012 at 11:01 AM, Andreas Haerter < list+puppet-us...@mail-node.com> wrote:
> Hi, > > is there any "officially" recommended default/standard method to realize > Puppet module unit test beyond linting (puppet-lint)? Compatibility to > version < 3.x is nice but NOT needed. > > > My main questions are: > > 1) I know there are different, well-known methods: > - Test::Unit > - rspec-puppet > - cucumber-puppet > Is there anything missing worth a look? Which are deprecated, wich are > future-proof? > Not aware of Test::Unit. Cucumber Puppet is deprecated [1]. rspec-puppet is the way to go. > > 2) There are helpful blog postings and articles out there [1] [2] [3] > [4]. However, none of them gives me a clue if there is a commonly > recommended tool/method to implement Unit test, some kind of > "use X because everybody is using it, you won't get compatibility issues > and the dev-community behind is healthy". > > A hint out of e.g. Puppet Labs or experienced community members > Point-of-View would be very helpful. Are there any recommendations? > Getting familiar with testing needs some work which I don't want to > invest into the wrong candidate/method/tools. ;-) > The blog posts you referenced are slightly out of date. I would start with Branan's post on Puppet Labs spec_helper [2]. It's used in all puppet labs modules. You can see it in action both in travis-ci [3] and puppet labs public Jenkins CI [4]. [1] <https://github.com/nistude/cucumber-puppet#readme> [2] < http://puppetlabs.com/blog/the-next-generation-of-puppet-module-testing/> [3] <https://travis-ci.org/puppetlabs/puppetlabs-openstack/builds/3551120> [4] <https://jenkins.puppetlabs.com/view/Puppet%20Modules/> Thanks, Nan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.