Skip to content

Commit

Permalink
Merge pull request puppetlabs#179 from cprice-puppet/maint/master/fix…
Browse files Browse the repository at this point in the history
…-readme-for-running-system-testswq

Fix example command in README for running system tests on a distro
  • Loading branch information
kbarber committed May 7, 2013
2 parents 5dd4621 + a7cd5d9 commit e5c1dbc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -517,9 +517,15 @@ Run the system tests:

$ rake spec:system

Note that these tests will fire up VirtualBox VMs, and set up shared folders for the module source code from your local working copy. This means that you need to have all of the source code for the module dependencies (see the `Modulefile` for a complete list) checked out in the same parent directory where you've checked out the source for the `puppet-postgres` module.

The system test suite will snapshot the VM and rollback between each test. If you want to only run the tests against an individual distro, you can do run:

$ rspec spec/distros/ubuntu_lucid_64
$ rspec spec/system/distros/ubuntu_lucid_64

To run only a single specific test against a distro:

$ rspec spec/system/distros/ubuntu_lucid_64 -e "should idempotently create a user who can log in"

We also have some unit tests that utilize rspec-puppet for faster iteration if required:

Expand Down

0 comments on commit e5c1dbc

Please sign in to comment.