[Zope3-Users] test writing with z3c.testsetup
Simon Elbaz
elbazsimon9 at gmail.com
Sun Mar 15 19:15:44 EDT 2009
Hi,
I have some difficulties to run tests with z3c.testsetup. Running
cdcadama/bin/test yields this output:
bash-3.00$ cdcadama/bin/test -vvv
Running tests at level 1
Running unit tests:
Running:
/home/simon/.buildout/eggs/z3c.testsetup-0.2.1-py2.4.egg/z3c/testsetup/basicsetup.txt
(0.140 s)
/home/simon/.buildout/eggs/z3c.testsetup-0.2.1-py2.4.egg/z3c/testsetup/functionaldoctestsetup.txt
(0.052 s)
/home/simon/.buildout/eggs/z3c.testsetup-0.2.1-py2.4.egg/z3c/testsetup/pythontestsetup.txt
(0.041 s)
/home/simon/.buildout/eggs/z3c.testsetup-0.2.1-py2.4.egg/z3c/testsetup/unitdoctestsetup.txt
(0.010 s)
/home/simon/.buildout/eggs/z3c.testsetup-0.2.1-py2.4.egg/z3c/testsetup/util.txt
(0.003 s)
/home/simon/.buildout/eggs/z3c.testsetup-0.2.1-py2.4.egg/z3c/testsetup/unittestsetup.txt
(0.010 s)
/home/simon/.buildout/eggs/z3c.testsetup-0.2.1-py2.4.egg/z3c/testsetup/testrunner.txt
(2.007 s)
/home/simon/.buildout/eggs/z3c.testsetup-0.2.1-py2.4.egg/z3c/testsetup/README.txt
(0.154 s)
/home/simon/.buildout/eggs/z3c.testsetup-0.2.1-py2.4.egg/z3c/testsetup/testgetter.txt
(0.170 s)
Ran 173 tests with 0 failures and 0 errors in 2.593 seconds.
I don't understand why it does not take the tests written under
cdcadama/src/cdcadama/tests/customer/ directory.
In this directory, I have put 2 files along with __init__.py:
bash-3.00$ more doctest01.txt testsetup01.py
::::::::::::::
doctest01.txt
::::::::::::::
doctest
=========
:doctest:
This is a simple doctest.
>>> 1+1
2
::::::::::::::
testsetup01.py
::::::::::::::
import z3c.testsetup
test_suite = z3c.testsetup.register_all_tests('cdcadama.tests.customer')
What should I do to have these files processed by the testrunner ?
Thanks for your help
Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-users/attachments/20090316/8a07d6ac/attachment.html
More information about the Zope3-users
mailing list