[TIP] Testing asynchronous method
heckj at mac.com
Tue Oct 18 15:48:15 PDT 2011
Yeah - I asked the question last november, never dove deeper into it though. Got away with ghetto CI testing for the short term, haven't revisited since. Doesn't really help this particular question, but the library I've been using since then is Proboscis (http://pypi.python.org/pypi/proboscis) - which is more about putting in dependencies in orders of tests being run than dealing with the asynchrony.
On Oct 18, 2011, at 3:40 PM, Pere Martir wrote:
> On Tue, Oct 18, 2011 at 9:35 PM, Tom Davis <tom at recursivedream.com> wrote:
>>> I'm biased, but I'd strongly recommend using Twisted Trial or
>>> something else that already exists.
>> Unless you have a technical reason for not being able to depend on Trial (e.g. you literally cannot deploy Twisted), I concur. Trial is great and widely used.
> I am actually surprised that testing asynchronous methods is not
> addressed in any unit test frameworks (correct me if I am wrong),
> given that there are a lot of Python unittest alternatives/extensions
> - nose, py.test, etc. Rationale ?
> I'd also like to know the other widely used asynchronous unit test framework ?
> - Twisted Trial
> - tornado.testing
> (I miss anything?)
> I don't have any experience, anyone ?
> PS: I found this question was also asked last November:
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
More information about the testing-in-python