Re: SVN: zope.dottedname/trunk/tox.ini Give up on nose-based coverage, I cannot make it work.

Tres Seaver <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
-----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          [email protected]
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-----

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.