[TIP] why do you use py.test?
Ronny.Pfannschmidt at gmx.de
Mon Feb 14 22:48:51 PST 2011
On Tue, 2011-02-15 at 10:12 +0900, Herman Sheremetyev wrote:
> Hey everyone,
> I've seen a lot of messages on this list of people mentioning they use
> py.test, so I'm curious what advantages it offers. I gave it a try and
> immediately noticed it was literally 10x slower than nose, taking 0.60
> seconds to run the same set of tests it takes nose 0.062. As a result
> I pretty much wrote it off since test speed is pretty important to me,
> and all the red in my terminal seemed a bit unnecessary. But as I see
> people continuously mention it I wonder if I missed something about
> py.test's functionality that could be really useful and offset the
> speed problems.
> So, what are your reasons for using py.test (or some other test runner) ? :)
My main reasons to use it are funcargs, test generators (not yield
tests) and local plugins.
Also all the pylib utilities also come in handy
(python3 compat, py.path, ...)
(btw, i specifically switched to it when funcargs and test_generators
It's pretty much the only python test framework that meets *my* needs
> P.S. I know people tend to get sensitive about their tools, so I don't
> want to start a flame war, just genuinely curious why people are using
> this particular one..
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 836 bytes
Desc: This is a digitally signed message part
More information about the testing-in-python