[Grok-dev] grok z3c.testsetup problem
Christian Klinger
cklinger at novareto.de
Fri May 8 05:51:03 EDT 2009
Hi Uli
>
>> 2) You can add nva.sliteauth to the list of eggs that are searched for
>> test registrations in buildout.cfg, roughly like this::
>>
>> [test]
>> recipe = zc.recipe.testrunner
>> eggs = training
>> nva.sliteauth
>> defaults = ['--tests-pattern', '^f?tests$', '-v']
>>
>> and after rerunning buildout all tests should be found.
>
> You have to run::
>
> $ bin/test -s nva.sliteauth
>
> afterwards (at least I think so).
Damn this does not work...
yeti:training cklinger$ bin/test -s nva.sliteauth
This file is picked up by the testrunner...
Running tests at level 1
Total: 0 tests, 0 failures, 0 errors in 0.000 seconds.
But if i create a tests package and add a test_sliteauth.py with this
contents the testrunner find´s the doctest in README.txt
import unittest
import doctest
from zope.testing import cleanup
from zope.testing import module
from zope import component
def test_suite():
optionflags = doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS
globs = {}
suite = unittest.TestSuite()
suite.addTest(doctest.DocFileSuite(
'../README.txt',
optionflags=optionflags,
globs=globs))
return suite
Any ideas why z3c.testrunner does not find the tests?
Thanks for your help...
Christian
More information about the Grok-dev
mailing list