Skip to content

Commit

Permalink
Merge branch 'pull-1506'
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienthebo committed Feb 28, 2013
2 parents f017798 + daab99f commit a1b7d4c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README_DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,30 @@ installed using [Bundler](http://gembundler.com/)
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](https://jenkins.puppetlabs.com).

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
Expand Down

0 comments on commit a1b7d4c

Please sign in to comment.