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'

Re: ignored test cases in unittest

2009-08-17 Thread David House
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#skipp

Re: ignored test cases in unittest

2009-08-16 Thread Terry
On Aug 16, 5:25 pm, Duncan Booth wrote: > Ben Finney wrote: > > Terry writes: > > >> 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? > > > One solution I've seen involves: > > > * a cust

Re: ignored test cases in unittest

2009-08-16 Thread Duncan Booth
Ben Finney wrote: > Terry writes: > >> 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? > > One solution I've seen involves: > > * a custom exception class, ‘TestSkipped’ > > * raisin

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 t

Re: ignored test cases in unittest

2009-08-15 Thread John Haggerty
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 somethin

Re: ignored test cases in unittest

2009-08-15 Thread Ben Finney
Terry writes: > 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? One solution I've seen involves: * a custom exception class, ‘TestSkipped’ * raising that exception at the top of test cases y

Re: ignored test cases in unittest

2009-08-15 Thread Roy Smith
In article , 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 t