Hi all, I'm having some trouble with the existing package tests in test/, and I'm pondering the "right" way to fix them.
There seems a pretty clear separation between unit and integration tests for package providers -- unit tests never actually execute any of the package commands (using mocking instead), while integration tests sometimes would. There are a couple of significant, annoying complications if you do start issuing package commands. First, they tend to be slow -- slow enough that you don't really want them running every time you run your unit tests. This means you'd probably want to split out the rake tasks so that we default to only running the unit tests, and we have to go out of our way to run the integration tests. It sucks, but there's not much you can do about the fact that, for instance, gems sometimes take 30 seconds to do anything at all. Second, you'd really like to have integration tests that actually install and remove packages, but to do that you need test packages. I've kind of got this in test/ral/providers/package.rb, but it's not very flexible -- you can't override it with your own packages -- and it just seems hard to maintain. I *think* we should end up with a unit and integration test for every provider, and each provider's integration test should at least do some minimal stuff -- install and remove a package, list all packages. If we do this, do we split up unit and integration tests? What do others think? -- People are more violently opposed to fur than leather because it is safer to harrass rich women than motorcycle gangs. --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en -~----------~----~----~----~------~----~------~--~---
