[TIP] Running two tests with the same name but with different context

Kamal Ahmed kamal2222ahmed at yahoo.com
Tue Jun 28 21:10:34 PDT 2011


Ben,

I am using:

1. nosetests 1.0
2. nosetests -s --with-xunit generates the XML file
3. I use nosetests -s -a '!mysql' $@ --with-xunit (the attrib plugin)

Thanks,
-Kamal.




>________________________________
>From: Ben Finney <ben+python at benfinney.id.au>
>To: testing-in-python at lists.idyll.org
>Sent: Tuesday, June 28, 2011 11:54 PM
>Subject: Re: [TIP] Running two tests with the same name but with different context
>
>Kamal Ahmed <kamal2222ahmed at yahoo.com> writes:
>
>> I have a test footest.py which runs 
>> with mysql database, and the same test runs on psql database, is there a
>>  way to distinguish this difference in an XML result file between the 
>> two tests.
>
>What test runner are you using?
>
>What generates the XML result file?
>
>What determines which database interface will be used when running the
>test?
>
>-- 
>\              “Only the educated are free.” —Epictetus, _Discourses_ |
>  `\                                                                   |
>_o__)                                                                  |
>Ben Finney
>
>
>_______________________________________________
>testing-in-python mailing list
>testing-in-python at lists.idyll.org
>http://lists.idyll.org/listinfo/testing-in-python
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20110628/a69f2069/attachment-0001.htm>


More information about the testing-in-python mailing list