puppetlabs-puppet/test
Luke Kanies b966ea02a9 Modifying the corruption-checking test.
It is now more likely to fail if there's a problem,
since the yaml should be corrupt, causing a yaml failure.

Also removing the equivalent test from the Storage module.

Signed-off-by: Luke Kanies <luke@madstop.com>
2008-12-15 19:27:45 +11:00
..
certmgr Fixed #1710 - Spurious output in test run 2008-10-29 14:36:20 +11:00
data Fix #1737 - ssh_authorized_keys should be able to parse options containing commas 2008-11-11 10:15:38 +11:00
executables Fixed #968 again, this time with tests -- parseonly works, 2008-02-13 16:27:35 -06:00
language Move function existance test to parser evaluation 2008-11-17 21:05:50 +11:00
lib Fix rake abort when there is a matching confine 2008-12-08 08:29:23 +11:00
network Fixed #1711 - fileserver test fails due to incorrect mocking 2008-11-19 18:55:57 +11:00
other Fixing a test I broke when fixing a reporting bug 2008-11-01 10:42:17 +11:00
puppet Fixing the asuser method in Puppet::Util::SUIDManager 2007-11-27 18:35:25 -06:00
rails Resources now return the 'should' value for properties from 2008-04-11 13:01:17 -05:00
ral Partially fixing #1772 - broken 'resources' tests. 2008-11-26 12:56:12 +11:00
util Modifying the corruption-checking test. 2008-12-15 19:27:45 +11:00
README Fix for #565: Final merge of changes from source:branches/execute-refactor into source:trunk 2007-04-03 15:51:18 +00:00
Rakefile Filenames for test must _end_ with '.rb' 2007-02-01 01:20:20 +00:00
test Adding documentation to the "test" script 2007-07-19 18:11:49 +00:00

README

$Id$

To run all tests, run: 'rake test'.  To run an individual suite, run the file
directly.  e.g. cd test/util; ./utiltest.rb

You might need to run some tests as root.

If you do not have rake installed:
  gem install rake

## The following information is possibly out of date?

Tests are organized into a dual hierarchy: each subdirectory is
considered a test suite, and each file in the subdirectory is considered
a test case.  You can use any test case as an example of how to write
more of them, but basically the only requirements are that they each have
their own class names, their names each match /tc_.+\.r/, and that they have
the following header:

if __FILE__ == $0
    $:.unshift '..'
    $:.unshift '../../lib'
    $blinkbase = "../.."
end