Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Merge branch 'pull-1506'

  • Loading branch information...
commit a1b7d4ce67f7492d8e13322f600cf3eaadc89b8d 2 parents f017798 + daab99f
@adrienthebo adrienthebo authored
Showing with 24 additions and 0 deletions.
  1. +24 −0
@@ -184,6 +184,30 @@ installed using [Bundler](
Using bundler (1.1.5)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
+# Running Tests #
+Puppet Labs projects use a common convention of using Rake to run unit tests.
+The tests can be run with the following rake task:
+ rake spec
+ # Or if using Bundler
+ bundle exec rake spec
+This allows the Rakefile to set up the environment beforehand if needed. This
+method is how the unit tests are run in [Jenkins](
+Under the hood Puppet's tests use `rspec`. To run all of them, you can directly
+use 'rspec':
+ rspec
+ # Or if using Bundler
+ bundle exec rspec
+To run a single file's worth of tests (much faster!), give the filename, and use
+the nested format to see the descriptions:
+ rspec spec/unit/ssl/host_spec.rb --format nested
# UTF-8 Handling #
As Ruby 1.9 becomes more commonly used with Puppet, developers should be aware

0 comments on commit a1b7d4c

Please sign in to comment.
Something went wrong with that request. Please try again.