Re: Adding W3C validating to zope.testbrowser

Marius Gedminas <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <20100223145702.GA25895@platonas>
On Tue, Feb 23, 2010 at 08:57:09AM -0500, Benji York wrote:
> On Sat, Feb 20, 2010 at 7:53 AM, Ross Patterson <[email protected]> wrote:
> > I started a branch for doing W3C HTML validation on responses to
> > zope.testbrowser requests:
> >
> > svn://svn.zope.org/repos/main/zope.testbrowser/branches/rossp-validator
> >
> > The idea is to be able to flip a switch and run all my functional
> > zope.testbrowser tests and see validation failures as test failures.
> 
> I'm not keen on this idea.  Validation checking isn't hard to do with
> testbrowser as-is, and doing it on every page load is overkill.  Add to
> that the global nature of the required switch and this really doesn't
> seem like the right approach.

I'd like to chime in and suggest using WSGI to hook up zope.testbrowser
and zope.app.testing.functional (or a better-designed replacement for
the latter).  Then you could plug in W3CValidatingMiddleware (if one
doesn't exist, it should be trivial to write it) between them.

Marius Gedminas
-- 
http://pov.lt/ -- Zope 3 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, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFLg+y6kVdEXeem148RAqsaAJ9nyAmWQC/92llXCClDsTvjdNMzRgCfY68T
Ff/Nud2UG2+iKG7tXngvmxc=
=R+KG
-----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.