[Checkins] SVN: zc.buildout/trunk/zc.recipe.testrunner/ Renamed distribution option to eggs.

Jim Fulton jim at zope.com
Thu Jun 29 11:11:24 EDT 2006


Log message for revision 68912:
  Renamed distribution option to eggs.
  

Changed:
  U   zc.buildout/trunk/zc.recipe.testrunner/README.txt
  U   zc.buildout/trunk/zc.recipe.testrunner/src/zc/recipe/testrunner/README.txt
  U   zc.buildout/trunk/zc.recipe.testrunner/src/zc/recipe/testrunner/__init__.py

-=-
Modified: zc.buildout/trunk/zc.recipe.testrunner/README.txt
===================================================================
--- zc.buildout/trunk/zc.recipe.testrunner/README.txt	2006-06-29 15:11:21 UTC (rev 68911)
+++ zc.buildout/trunk/zc.recipe.testrunner/README.txt	2006-06-29 15:11:23 UTC (rev 68912)
@@ -1 +1,32 @@
-Recipe for generating a custom test runner.
+Test-Runner Recipe
+==================
+
+This recipe generates zope.testing test-runenr scripts for testing a
+collection of eggs.  The eggs must already be installed (using the
+zc.recipe.egg recipe)
+
+The test-runner recipe has 2 options:
+
+- The eggs option takes the names of the eggs to be
+  tested.  These are not installed by the recipe. They must be
+  installed by some other recipe (or using the buildout develop
+  option).  The distributions are in the form os setuptools
+  requirements.  Multiple distributions must be listed on separate
+  lines. This option is required.
+
+- The script option gives the name of the script to generate, in the
+  buildout bin directory.  Of the option isn't used, the part name
+  will be used.
+
+
+To do
+-----
+
+- Don't require eggs to be installed by the egg recipe.  Go ahead
+  and try to install them.
+
+- Let the egg recipe do more of the heavy lifting internally.
+
+- Support specifying testrunner defaults (e.g. verbosity, test file 
+  patterns, etc.)
+

Modified: zc.buildout/trunk/zc.recipe.testrunner/src/zc/recipe/testrunner/README.txt
===================================================================
--- zc.buildout/trunk/zc.recipe.testrunner/src/zc/recipe/testrunner/README.txt	2006-06-29 15:11:21 UTC (rev 68911)
+++ zc.buildout/trunk/zc.recipe.testrunner/src/zc/recipe/testrunner/README.txt	2006-06-29 15:11:23 UTC (rev 68912)
@@ -4,19 +4,19 @@
 The test-runner recipe, zc.recipe.testrunner, creates a test runner
 for a project.
 
-The rest-runner recipe has 2 options:
+The test-runner recipe has 2 options:
 
-- The distributions option takes the names of the distributions to be
-  tested.  These are not installed by the recipe. They must be
-  installed by some other recipe (or using the buildout develop
-  option).  The distributions are in the form os setuptools
-  requirements.  Multiple distributions must be listed on separate
-  lines. This option is required.
 
-- The script option gives the name of the script to generate, in the
-  buildout bin directory.  Of the option isn't used, the part name
-  will be used.
+eggs
+    The eggs option specified a list of eggs to test given as one ore
+    more setuptools requirement strings.  Each string must be given on
+    a separate line.
 
+script
+    The script option gives the name of the script to generate, in the
+    buildout bin directory.  Of the option isn't used, the part name
+    will be used.
+
 (Note that, at this time, due to limitations in the Zope test runner,
  the distributions cannot be zip files. TODO: Fix the test runner!)
 
@@ -109,14 +109,14 @@
     ...
     ... [testdemo]
     ... recipe = zc.recipe.testrunner
-    ... distributions = 
+    ... eggs = 
     ...    demo
     ...    demo2
     ... script = test
     ... """)
 
-Note that we specified both demo and demo2 in the distributions
-section and that we put them on separate lines.
+Note that we specified both demo and demo2 in the eggs
+option and that we put them on separate lines.
 
 We also specified the offline option to run the buildout in offline mode.
 
@@ -143,7 +143,7 @@
       Ran 2 tests with 0 failures and 0 errors in 0.000 seconds.
 
 Note that we didn't run the demoneeded tests.  Tests are only run for
-the distributions listed, not for their dependencies.
+the eggs listed, not for their dependencies.
 
 If we leave the script option out of the configuration, then the test
 script will get it's name from the part:
@@ -157,7 +157,7 @@
     ...
     ... [testdemo]
     ... recipe = zc.recipe.testrunner
-    ... distributions = demo
+    ... eggs = demo
     ... """)
 
     >>> print system(os.path.join(sample_buildout, 'bin', 'buildout')),

Modified: zc.buildout/trunk/zc.recipe.testrunner/src/zc/recipe/testrunner/__init__.py
===================================================================
--- zc.buildout/trunk/zc.recipe.testrunner/src/zc/recipe/testrunner/__init__.py	2006-06-29 15:11:21 UTC (rev 68911)
+++ zc.buildout/trunk/zc.recipe.testrunner/src/zc/recipe/testrunner/__init__.py	2006-06-29 15:11:23 UTC (rev 68912)
@@ -38,7 +38,7 @@
     def install(self):
         options = self.options
         requirements = [r.strip()
-                        for r in options['distributions'].split('\n')
+                        for r in options['eggs'].split('\n')
                         if r.strip()]
         ws = zc.buildout.easy_install.working_set(
             requirements+['zope.testing'],



More information about the Checkins mailing list