[Zope-dev] SVN: zope.dottedname/trunk/tox.ini Give up on nose-based coverage, I cannot make it work.
Tres Seaver
tseaver at palladion.com
Mon Feb 4 16:57:31 UTC 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 02/04/2013 11:11 AM, Marius Gedminas wrote:
Your issue is actually Pip screwing up namespace packages[1], which then
interferes with Nose test discovery. From zope.component's tox.ini::
[testenv:coverage]
basepython =
python2.6
commands =
# The installed version messes up nose's test discovery /
# coverage reporting
# So, we uninstall that from the environment, and then install the
# editable version, before running nosetests.
pip uninstall -y zope.component
python -c "import shutil; shutil.copyfile('src/zope/__init__.py',
'{envdir}/lib/python2.6/site-packages/zope/__init__.py')"
pip install -e .
nosetests --with-xunit --with-xcoverage
deps =
zope.component
zope.testing
zope.hookable
ZODB3
zope.location
zope.proxy
zope.security
zope.configuration
zope.i18nmessageid
nose
coverage
nosexcover
Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/
iEYEARECAAYFAlEP6HsACgkQ+gerLs4ltQ7NogCgrtYwV5zpaU7gH90TsSAWDjuD
TyoAoMORhfXWFirjk+gUIv255OO2SrP5
=nUhN
-----END PGP SIGNATURE-----
More information about the Zope-Dev
mailing list