tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Burch <>
Subject Re: Need guidance for writing unit tests for 55317
Date Tue, 20 Aug 2013 13:43:54 GMT
On 20/08/13 14:32, Violeta Georgieva wrote:
> 2013/8/20 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?
> It is explained in BUILDING.txt
> "(7.2) Running a single test
> It is possible to run a single JUnit test class by adding the "test.entry"
> property to the file. The property specifies the name of
> the test class.
> For example:
>      test.entry=org.apache.catalina.util.TestServerInfo"

e.g. this works for me..


> Also I run them directly in IDE as JUnit tests.

+1 - works for the individual test classes under netbeans. Most people 
seem to use eclipse, but I can't speak for them.



> Regards
> Violeta

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message