[Tutor] Unittest not running all test cases
Carroll, Barry
Barry.Carroll at psc.com
Sat Apr 8 00:34:33 CEST 2006
Kent:
I just rechecked my class names, and there are no duplicates. I was
careful to preface all of the classes in testsymc39 with 'C39...', and
used 'S25...' in testsym25. Likewise, the classes in each module have
names that describe the type of data being tested, so names are unique
within each module as well.
Is there a maximum length for class names? Some of my class names are
pretty long, and only differ in the last few characters. I'd be
surprised if that were the case in Python, but I'm short on other ideas.
Thanks for your help.
Regards,
Barry
barry.carroll at psc.com
541-302-1107
________________________
We who cut mere stones must always be envisioning cathedrals.
-Quarry worker's creed
> -----Original Message-----
> Date: Fri, 07 Apr 2006 15:42:15 -0400
> From: Kent Johnson <kent37 at tds.net>
> Subject: Re: [Tutor] Unittest not running all test cases
> Cc: tutor at python.org
> Message-ID: <4436C097.8080406 at tds.net>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
<<snip>>
>
> I don't think there is a limit like this. I wonder, do you have any
name
> collisions? For example if testsymc39 and testsym25 both contain class
> TestSym then only the second one will run because it will shadow the
> name from the first module.
>
> If this is the case you need a more sophisticated way of accumulating
> tests. You might want to look into using nose or one of the other
> test-discovery frameworks listed here:
>
http://pycheesecake.org/wiki/PythonTestingToolsTaxonomy#UnitTestingTools
>
> Kent
More information about the Tutor
mailing list