tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Need guidance for writing unit tests for 55317
Date Tue, 20 Aug 2013 15:12:50 GMT
Mark,

On 8/20/13 9:25 AM, Mark Thomas wrote:
> On 20/08/2013 14:13, Nick Williams wrote:
>> I'm working on implementing bugzilla 55317. It's a pretty important
>> change (weaving) to a pretty import class (WebappClassLoader), so it
>> obviously needs some unit tests. However, I need some guidance:
>>
>> 1) I've never gotten all the existing tests to pass on my machine.
>> Last time I ran them it took 45 minutes (holy crap) and about 1/3 of
>> them failed. This is obviously something wrong with my configuration
>> and not with Tomcat. I'd like to avoid running all tests for this
>> reason and only run the particular tests I'm working on. How would I
>> do this? Is this even possible with Ant?
> 
> ant test -Dtest.entry=org.apache.catalina.TestClassToExecute
> 
> svn co ...
> ant clean test
> 
> should work on Windows, Linux and OSX for all three connectors.

1/3 of the tests will fail if the native connector hasn't been built.
Could that be your problem, Nick?

-chris


Mime
View raw message