summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2005-04-13 21:58:38 +0000
committerLuke Kanies <luke@madstop.com>2005-04-13 21:58:38 +0000
commit6a82d07b2158a107a19b4b8606d3b13f8bfa80dd (patch)
tree1f2812a99bef5ade8d9b5412133743da53a83a18
parent38248177be2bd1060cb1219804129b6def0a7df9 (diff)
downloadpuppet-6a82d07b2158a107a19b4b8606d3b13f8bfa80dd.tar.gz
puppet-6a82d07b2158a107a19b4b8606d3b13f8bfa80dd.tar.xz
puppet-6a82d07b2158a107a19b4b8606d3b13f8bfa80dd.zip
adding readme
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@136 980ebf18-57e1-0310-9a29-db15c13687c0
-rw-r--r--test/README19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/README b/test/README
new file mode 100644
index 000000000..80d98b4bd
--- /dev/null
+++ b/test/README
@@ -0,0 +1,19 @@
+$Id$
+
+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
+
+To run all tests, just type './test'. To run an individual suite, run
+'./test <suite>'. To run an individual case, cd into the suite
+subdirectory and run './tc_<case>.rb'. Tests are basically guaranteed
+not to work without cd'ing into the subdirectory.