Re: [Zope-dev] [Checkins] SVN: zope.testing/trunk/ when a test module does not define a test_suite, first try to load any unittest.TestCase descendants in it before complaining it does not contain any tests
On Fri, Jul 24, 2009 at 2:38 AM, Wolfgang Schnerring<wosc@wosc.de> wrote:
Log message for revision 102202: when a test module does not define a test_suite, first try to load any unittest.TestCase descendants in it before complaining it does not contain any tests
I'd rather zope.testing support the test discovery protocol recently added to the Python standard library and backported as the "discover" module (http://pypi.python.org/pypi/discover). -- Benji York Senior Software Engineer Zope Corporation
* Benji York <benji@zope.com> [2009-07-24 08:02]:
On Fri, Jul 24, 2009 at 2:38 AM, Wolfgang Schnerring<wosc@wosc.de> wrote:
Log message for revision 102202: when a test module does not define a test_suite, first try to load any unittest.TestCase descendants in it before complaining it does not contain any tests
I'd rather zope.testing support the test discovery protocol recently added to the Python standard library and backported as the "discover" module (http://pypi.python.org/pypi/discover).
When I proposed *this exact same* patch to Christian Theune one year ago(!) he demurred with the comment along the lines of "the testrunner is up for refactoring and extensibility with regarding test discovery anyway". One year later, nothing like that has happened AFAICS. I'm quite done waiting, so I finally put this in as a stopgap that removes the annoyance for 80% of the cases I know. I'm glad to hear about that discovery protocol (didn't know about it before), and I'm all for a proper solution (the registration of doctests is another point to think about in this area), but I hope you understand that I prefer a temporary fix (that will be replaced by something proper later on) to *no fix at all*. Wolfgang
On 07/24/2009 02:02 PM, Benji York wrote:
On Fri, Jul 24, 2009 at 2:38 AM, Wolfgang Schnerring<wosc@wosc.de> wrote:
Log message for revision 102202: when a test module does not define a test_suite, first try to load any unittest.TestCase descendants in it before complaining it does not contain any tests
I'd rather zope.testing support the test discovery protocol recently added to the Python standard library and backported as the "discover" module (http://pypi.python.org/pypi/discover).
Ah, I didn't know about that. I think it would be a good idea to put that on the zope.testing agenda in Launchpad. Christian -- Christian Theune · ct@gocept.com gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1 Zope and Plone consulting and development
participants (3)
-
Benji York -
Christian Theune -
Wolfgang Schnerring