Re: Zope Tests: 73 OK, 12 Failed, 4 Unknown

Marius Gedminas <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <20110325205452.GA19493@platonas>
On Fri, Mar 25, 2011 at 07:15:14PM +0100, Hanno Schlichting wrote:
> On Fri, Mar 25, 2011 at 6:17 PM, Marius Gedminas <[email protected]> wrote:
> >> > Subject: FAILED : winbot / z3c.coverage_py_265_32
> >> > From: buildbot at winbot.zope.org
> >> > Date: Wed Mar 23 23:31:40 EDT 2011
> >> > URL: http://mail.zope.org/pipermail/zope-tests/2011-March/036062.html
> >>
> >> This package looks to belong to Stephan, Adam Groszer, and Marius Gedminas.
> >
> > The failure appears to be caused by the buildbot machine not having
> > enscript, which is used to add syntax highlighting to Python code.
> > Google suggests http://gnuwin32.sourceforge.net/packages/enscript.htm
> >
> > I'd like to take some time and rewrite the z3c.coverage to use Pygments
> > instead of piping the output through an enscript subprocess, but I'd
> > like it even more if someone else went ahead and did that. ;-)
> 
> May I suggest you just switch to using to coverage by Ned Batchelder
> instead [1]?

That's what I've done, and that's why z3c.coverage is not high up on my
priority list.

> A typical buildout setup can look like the one described at
> http://pypi.python.org/pypi/plone.testing/4.0a3#coverage-reporting
> assuming you have a zc.recipe.testrunner script called bin/test.

I've never managed to make 'bin/coverage run bin/test' work with
zc.buildout 1.5.0 and recent zc.recipe.testrunner.  Something about the
site.py magic that buildout now does, I think.

I end up doing hacks like

    [coverage-test]
    recipe = zc.recipe.testrunner
    eggs = myapp
    defaults = ['--tests-pattern', '^f?tests$$', '-v']
    initialization =
      # haaaaack because zc.testrunner 1.4.0 produces an _insane_ bin/test
      # that cannot be run with bin/coverage run bin/test, or even
      # bin/python bin/test
      import coverage, atexit
      c = coverage.coverage(data_file='../../../.coverage')
      def _when_done(c=c): c.stop(), c.save()
      atexit.register(_when_done)
      c.start()

which make me sad.

Marius Gedminas
-- 
http://pov.lt/ -- Zope 3/BlueBream consulting and development

_______________________________________________
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 )
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk2NARwACgkQkVdEXeem148FmgCgjiRGDL4cHxwhbldRJ95Mzp/L
dLkAn3x3zdI5pRPdBsSdtVGWmRyU9Pii
=6Duy
-----END PGP SIGNATURE-----
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.