DocTests as TestCase methods/attrs, need PR reviewer.

Jim Fulton <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <CAPDm-Fgfpg56_=u6qiMD9nfEcvCn3MbtE-O3t63gE2dGi3BJYQ@mail.gmail.com>
Lately, I've been using nose and the support in nose for doctests makes me weep.

When I integrated doctests with unittest, I based the integration on
test suites, but nose ignores test suites.

Today, I created a small module in zope.testing that let's you define
doctest in ordinary TestCase classes that nose sees. Another advantage
of this approach is that doctest defined this way use the same fixture
mechanism that ordinary unit tests do.

Some simple examples can be seen here:
https://github.com/zopefoundation/zope.testing/blob/doctestcase/src/zope/testing/doctestcase.txt

I'd love it if someone would review my PR. :)

https://github.com/zopefoundation/zope.testing/pull/4

Jim

-- 
Jim Fulton
http://jimfulton.info
_______________________________________________
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.