edit test-notes
authorAlec Warner <antarus@gentoo.org>
Thu, 11 Jan 2007 05:12:06 +0000 (05:12 -0000)
committerAlec Warner <antarus@gentoo.org>
Thu, 11 Jan 2007 05:12:06 +0000 (05:12 -0000)
svn path=/main/trunk/; revision=5539

TEST-NOTES

index dbdbf20d0061e62aa5ba8a313ad94d6e119a7a0a..82f3423101fda4d6323054e637c3035cbdc7e863 100644 (file)
@@ -19,6 +19,9 @@ tests/portage_versions/test_vercmp.py
 
 would be the filename.
 
-The __init__.py file in tests only goes 1 deep (it's non-recursive, in other words).  If
-you end up with more directories it will probably break at present.  Need to replace the
-'/' in the directory path with a '.' (for proper importing).  This should be trivial to fix.
+The __init__.py file now does recursive tests, but you need to tell it so.  For example, if
+you had cache tests the dir format would be something like...
+
+tests/cache/flat_hash/test_foo.py
+
+and you would put "cache/flat_hash" into the testDirs variable in __init__.py.