fhrbek 10cb81468e Coding style fixes 11 роки тому
..
distros e9370fee7b Add unit tests and travis-ci support 11 роки тому
test_module 10cb81468e Coding style fixes 11 роки тому
README.md e9370fee7b Add unit tests and travis-ci support 11 роки тому
base.pp 10cb81468e Coding style fixes 11 роки тому

README.md

Warning: these spec tests are pretty resource intensive!

You will need the following in order to run them:

If you just run:

rspec ./spec

then, for each distro that has a Vagrantfile in the spec/distros directory, vagrant will download a base image from the web, fire up a VM, and run the suite of tests against the VM.

If you only want to run the tests against an individual distro, you can instead do something like:

rspec ./spec/distros/ubuntu_lucid_64

For some options that might speed up the testing process a bit during development, please see spec/support/postgres_test_config.rb.

By default the sahara gem restores VMs to a snapshot state after each test, to make sure that the individual tests aren't polluting the ones that are run later. If you want to disable this during development, you can set HardCoreTesting to false in spec/support/postgres_test_config.rb.