Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos.buildout
Commits
f4f91db4
Commit
f4f91db4
authored
Jun 29, 2006
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed distribution option to eggs.
parent
3331bde6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
17 deletions
+48
-17
zc.recipe.testrunner/README.txt
zc.recipe.testrunner/README.txt
+32
-1
zc.recipe.testrunner/src/zc/recipe/testrunner/README.txt
zc.recipe.testrunner/src/zc/recipe/testrunner/README.txt
+15
-15
zc.recipe.testrunner/src/zc/recipe/testrunner/__init__.py
zc.recipe.testrunner/src/zc/recipe/testrunner/__init__.py
+1
-1
No files found.
zc.recipe.testrunner/README.txt
View file @
f4f91db4
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.)
zc.recipe.testrunner/src/zc/recipe/testrunner/README.txt
View file @
f4f91db4
...
...
@@ -4,18 +4,18 @@ Test-Runner Recipe
The test-runner recipe, zc.recipe.testrunner, creates a test runner
for a project.
The
r
est-runner recipe has 2 options:
The
t
est-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 @@ develop egg and to create the test script:
...
... [testdemo]
... recipe = zc.recipe.testrunner
...
distribution
s =
...
egg
s =
... demo
... demo2
... script = test
... """)
Note that we specified both demo and demo2 in the
distribution
s
sec
tion and that we put them on separate lines.
Note that we specified both demo and demo2 in the
egg
s
op
tion 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 @@ We can run the test script to run our demo test:
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
distribution
s listed, not for their dependencies.
the
egg
s 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 @@ script will get it's name from the part:
...
... [testdemo]
... recipe = zc.recipe.testrunner
...
distribution
s = demo
...
egg
s = demo
... """)
>>> print system(os.path.join(sample_buildout, 'bin', 'buildout')),
...
...
zc.recipe.testrunner/src/zc/recipe/testrunner/__init__.py
View file @
f4f91db4
...
...
@@ -38,7 +38,7 @@ class TestRunner:
def
install
(
self
):
options
=
self
.
options
requirements
=
[
r
.
strip
()
for
r
in
options
[
'
distribution
s'
].
split
(
'
\
n
'
)
for
r
in
options
[
'
egg
s'
].
split
(
'
\
n
'
)
if
r
.
strip
()]
ws
=
zc
.
buildout
.
easy_install
.
working_set
(
requirements
+
[
'zope.testing'
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment