Please note this is beta and I will be rolling a gem eventually. Currently this only works if the top level directory is the same asi the module name.
Wrap into rspec so you can actually run checks on the state of the virtual machine.
Run the tests directory in a puppet module actually on a virtual machine. We use sahara so we can roll back the state of the machine between tests. I have created a Vagrant/prerun directory to drop shell scripts in.These are run before sahara is turned on. This is for cachine packages etc so you dont need to download them each test.
First install virtual box
Install the following gems
to your Rakefile
Run rake vmsetup to create all the files we need
Run rake vmtest to run all the tests in tests/