Author pitrou
Recipients Arfrever, Julian, Yaroslav.Halchenko, abingham, bfroehle, borja.ruiz, brett.cannon, chris.jerdonek, eric.araujo, eric.snow, exarkun, ezio.melotti, flox, fperez, hpk, michael.foord, nchauvat, ncoghlan, pitrou, r.david.murray, santoso.wijaya, serhiy.storchaka, spiv
Date 2013-02-11.09:55:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1360576510.16.0.816966924784.issue16997@psf.upfronthosting.co.za>
In-reply-to
Content
> what if there are 500 subtests in a loop and you don't want 500 failures to be
> registered for that test case?

Parametered tests have the same issue. In this case you simply don't use subtests
or test cases. On the other hand, the issue doesn't exist in most cases where you
iterate over three or four different cases.

> addMessage was just one suggestion.

It is quite orthogonal, actually, and could be added independently. Also, it is not clear how you would limit the addMessage to a subtest, rather than the whole test case.
We could re-use testtools' addDetail idea, although their content-type thing
is a bit heavyweight: I'd rather duck-type the API.

http://testtools.readthedocs.org/en/latest/for-test-authors.html#details
History
Date User Action Args
2013-02-11 09:55:10pitrousetrecipients: + pitrou, brett.cannon, spiv, exarkun, ncoghlan, ezio.melotti, eric.araujo, Arfrever, r.david.murray, michael.foord, hpk, flox, fperez, chris.jerdonek, Yaroslav.Halchenko, santoso.wijaya, nchauvat, Julian, abingham, eric.snow, serhiy.storchaka, borja.ruiz, bfroehle
2013-02-11 09:55:10pitrousetmessageid: <1360576510.16.0.816966924784.issue16997@psf.upfronthosting.co.za>
2013-02-11 09:55:10pitroulinkissue16997 messages
2013-02-11 09:55:10pitroucreate