Re: [veltools] Unit testing best practices

2007-11-04 Thread Claude Brisson
Le mardi 30 octobre 2007 à 11:02 -0700, Nathan Bubna a écrit : > On 10/30/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: > > All, > > > > I recently added a JIRA enhancement and included a patch. I want to add > > a unit test (for my changes to the LinkTool) to the existing tests, but > > I'm h

Re: [veltools] Unit testing best practices

2007-10-30 Thread Christopher Schultz
Nathan, Nathan Bubna wrote: > On 10/30/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: >> Nathan, >> >> Nathan Bubna wrote: >>> hmm. i haven't run a full "ant test" on the trunk lately, though "ant >>> test.generic" worked recently when i checked in the RenderTool fix. >>> i'll try it out. pr

Re: [veltools] Unit testing best practices

2007-10-30 Thread Nathan Bubna
On 10/30/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: > Nathan, > > Nathan Bubna wrote: > > hmm. i haven't run a full "ant test" on the trunk lately, though "ant > > test.generic" worked recently when i checked in the RenderTool fix. > > i'll try it out. probably something broken. i've bee

Re: [veltools] Unit testing best practices

2007-10-30 Thread Christopher Schultz
Nathan, Nathan Bubna wrote: > hmm. i haven't run a full "ant test" on the trunk lately, though "ant > test.generic" worked recently when i checked in the RenderTool fix. > i'll try it out. probably something broken. i've been pretty focused > on 2.x lately. Er... should I be working in a branc

Re: [veltools] Unit testing best practices

2007-10-30 Thread Nathan Bubna
On 10/30/07, Nathan Bubna <[EMAIL PROTECTED]> wrote: > On 10/30/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: > > Nathan, > > > > Nathan Bubna wrote: > > > two ideas: 1) find out what other projects with similar needs use. > > > 2) search google for libs to support this > > > > Yeah, I google

Re: [veltools] Unit testing best practices

2007-10-30 Thread Nathan Bubna
On 10/30/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: > Nathan, > > Nathan Bubna wrote: > > two ideas: 1) find out what other projects with similar needs use. > > 2) search google for libs to support this > > Yeah, I googled for mock servlet and found a bunch of things. Nothing > really jump

Re: [veltools] Unit testing best practices

2007-10-30 Thread Christopher Schultz
Nathan, Nathan Bubna wrote: > two ideas: 1) find out what other projects with similar needs use. > 2) search google for libs to support this Yeah, I googled for mock servlet and found a bunch of things. Nothing really jumped out at me for a good solution. Since my needs are slim (testing this r

Re: [veltools] Unit testing best practices

2007-10-30 Thread Nathan Bubna
On 10/30/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: > All, > > I recently added a JIRA enhancement and included a patch. I want to add > a unit test (for my changes to the LinkTool) to the existing tests, but > I'm having trouble doing so. > > First, the test system itself is cumbersome (to

[veltools] Unit testing best practices

2007-10-30 Thread Christopher Schultz
All, I recently added a JIRA enhancement and included a patch. I want to add a unit test (for my changes to the LinkTool) to the existing tests, but I'm having trouble doing so. First, the test system itself is cumbersome (to me). It tries to start servlet container instances and stuff like that,