[TIP] pytest and nose - what's to choose between them?

Noufal Ibrahim noufal at nibrahim.net.in
Tue Aug 13 10:17:10 PDT 2013


Emily Bache <emily.bache at cantab.net> writes:

> Hi,
>
> I've been looking at pytest and nose as alternatives to unittest, since
> they both offer a pythonic interface for writing unit tests without too
> much boilerplate. I was hoping for some opinions from this list about when
> to choose nose and when to choose pytest? What are the main advantages of
> each? My target python version is 3.3, does that make a difference?

+1 for py.test. The plugin infrastructure is very pragmatic and the API
(funcargs etc.) are nicely designed. It reduces test code boilerplate
considerably. 


[...]


-- 
Cordially,
Noufal
http://nibrahim.net.in



More information about the testing-in-python mailing list