[TIP] Query on Testify

Sean Fisk sean at seanfisk.com
Mon Jun 24 12:49:39 PDT 2013

Hi Mani,

I assume by data provider you are referring to data-driven
In pytest, the way I accomplish this is by using test parametrization,
which is a fancy way of saying "running the same tests with different
parameters." Using pytest, you can parametrize a
individual functions<http://pytest.org/latest/parametrize.html#pytest-mark-parametrize-parametrizing-test-functions>,
or create your own parametrization
Here is an example from a project on which I am
I use os.listdir() to get a directory listing, then run the same test for
each file in the directory.

Could you clarify what you mean by "test re-runner"?

Hope this helps,

- Sean

On Mon, Jun 24, 2013 at 12:10 PM, mani kandan <majafriend at gmail.com> wrote:

> Hi Julian,
> Yeah I went through it and found it quite interesting. Some of my
> requirements are having a data provider and test rerunner. I came across
> testify and read its document where it is specified that it is an
> enhancement over unittest and nose. So I am trying to understand what it
> provide and how easy is to use it. This will help me in making a correct
> decision before starting on any test framework as it will be difficult to
> switch once we started.
> Thanks,
> -Mani
> On Mon, Jun 24, 2013 at 11:05 AM, Julian Berman <julian at grayvines.com>wrote:
>> Hi.
>> The standard library already has a testing framework (unittest) which is
>> quite widely used and documented.
>> Have you looked at it?
>> Cheers
>> Julian
>> Hi all,
>> I am newbie to python. Recently I came to know about the mailing list. I
>> am in search of a good python test framework. While doing so, I cam across
>> testify. The wiki provided in https://github.com/Yelp/Testify/wiki is
>> very minimal. I am looking for some more examples and uses. Can anyone me
>> point me on same.
>> Thanks,
>> _______________________________________________
>> testing-in-python mailing list
>> testing-in-python at lists.idyll.org
>> http://lists.idyll.org/listinfo/testing-in-python
> --
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python

Sean Fisk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20130624/6d4630db/attachment.htm>

More information about the testing-in-python mailing list