Re: ignored test cases in unittest

2009-08-15 Thread Terry Yin
Yes, should be more than 200. But now 187+ are running (some are
'ignored').It's
a personal project, I just don't feel safe without all the testing as it
grows bigger and bigger.


On Sun, Aug 16, 2009 at 11:40 AM, John Haggerty  wrote:

> So you are saying you have several hundred tests you have to do on your
> program?
>
> On Sat, Aug 15, 2009 at 7:04 PM, Terry  wrote:
>
>> Hi,
>>
>> I have some 100s unittest cases with my python program. And sometimes,
>> I did quick-and-dirty work by ignoring some test cases by adding an
>> 'x' (or something else) to the beginning of the case name.
>> As time pass by, it's very hard for me to find which test cases are
>> ignored.
>>
>> It seemed the to me that python unittest module does not support the
>> counting of ignored test cases directly. Is there any ready solution
>> for this?
>>
>> br, Terry
>> --
>> http://mail.python.org/mailman/listinfo/python-list
>>
>
>


-- 
-
Blog: http://terry-yinzhe.spaces.live.com/
twitter: http://twitter.com/terryyin
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ignored test cases in unittest

2009-08-17 Thread Terry Yin
On Aug 17, 8:23 pm, David House  wrote: > > Note that the
unittest module now supports the `skip' and > `expectedFailure' decorators,
which seem to describe some of the > solutions here. > > Seehttp://
docs.python.org/3.1/library/unittest.html#skipping-tests-and-e... > > -- >
-David Yes, indeed! I'm using 2.6 now. It seemed I need to copy untitest.py
from 3.1. But the docs.python.org is hell slow from where I am (China), not
even working except the title:-( br, Terry

On Mon, Aug 17, 2009 at 8:23 PM, David House  wrote:

> 2009/8/16 Terry :
> > Thanks for the solutions. I think the decorator idea is what I'm look
> > for:-)
>
> Note that the unittest module now supports the `skip' and
> `expectedFailure' decorators, which seem to describe some of the
> solutions here.
>
> See
> http://docs.python.org/3.1/library/unittest.html#skipping-tests-and-expected-failures
>
> --
> -David
>



-- 
-
Blog: http://terry-yinzhe.spaces.live.com/
twitter: http://twitter.com/terryyin
-- 
http://mail.python.org/mailman/listinfo/python-list