launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #07755
Another thing I'd like in our test suite
-
To:
Launchpad Community Development Team <launchpad-dev@xxxxxxxxxxxxxxxxxxx>
-
From:
Jeroen Vermeulen <jtv@xxxxxxxxxxxxx>
-
Date:
Tue, 16 Aug 2011 21:46:49 +0700
-
User-agent:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11
Since my last thread of this kind led to such great news, I'm just going
to keep doing it.
Wouldn't it be great if our test suite automatically ran each of our
utility interfaces through:
self.assertProvides(
getUtility(ISomethingSource), ISomethingSource)
It's a pain to have to remember doing that for every utility, but doing
it quickly checks for a wide range of possible mistakes.
That check also usually ends up in a layer with the database, librarian,
rabbit, and what have you. Takes ages to start up — a bit much for
something one step above "make lint." But also I would expect it to be
a bug for any of our utilities to need any of those things.
Jeroen
Follow ups