You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by David Jencks <da...@yahoo.com> on 2007/04/04 01:53:57 UTC

Is there a tomcat/jasper test suite?

Following Remy's suggestion I implemented web.xml overrides of  
annotations but although the result compiles I have no very good way  
to determine if it works.  I looked around a bit but didn't see any  
unit tests or integration testsuite.  What am I missing?  Right now I  
can really only test the geronimo javaee integration with the javaee  
tck, but that doesn't use the code in question.  If the standalone  
tck is the normal test method, is there some way I could get access  
to it?

thanks
david jencks


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: Is there a tomcat/jasper test suite?

Posted by Remy Maucherat <re...@apache.org>.
Yoav Shapira wrote:
> Hi,
> 
> On 4/4/07, David Jencks <da...@yahoo.com> wrote:
>> $ ant tester
>> Buildfile: build.xml
>>
>> BUILD FAILED
>> Target `tester' does not exist in this project.
> 
> You're right, it's gone from the 6.0 trunk.  It's been in the 4.x and
> 5.x build.xmls, e.g.
> https://svn.apache.org/repos/asf/tomcat/build/tc5.5.x/build.xml,
> forever, so I assumed it was still in 6.0.
> 
> Remy or someone who's run the tests for 6.0: what replaced the tester 
> target?

We're running the TCK pretty much all the time. Porting the tester 
webapp is possible, of course (and it should be relatively easy; there's 
a "test" folder which could be used for that).

David Jencks wrote:
 > Following Remy's suggestion I implemented web.xml overrides of
 > annotations

Cool :)

It is true that annotations is a specific topic, since the Tomcat 
implementation (which is very simple, though) is never tested in the TCK.

Rémy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: Is there a tomcat/jasper test suite?

Posted by Yoav Shapira <yo...@apache.org>.
Hi,

On 4/4/07, David Jencks <da...@yahoo.com> wrote:
> $ ant tester
> Buildfile: build.xml
>
> BUILD FAILED
> Target `tester' does not exist in this project.

You're right, it's gone from the 6.0 trunk.  It's been in the 4.x and
5.x build.xmls, e.g.
https://svn.apache.org/repos/asf/tomcat/build/tc5.5.x/build.xml,
forever, so I assumed it was still in 6.0.

Remy or someone who's run the tests for 6.0: what replaced the tester target?

Yoav

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: Is there a tomcat/jasper test suite?

Posted by David Jencks <da...@yahoo.com>.
On Apr 3, 2007, at 7:19 PM, Yoav Shapira wrote:

> Hi,
>
> On 4/3/07, David Jencks <da...@yahoo.com> wrote:
>> Following Remy's suggestion I implemented web.xml overrides of
>> annotations but although the result compiles I have no very good way
>> to determine if it works.  I looked around a bit but didn't see any
>> unit tests or integration testsuite.  What am I missing?  Right now I
>> can really only test the geronimo javaee integration with the javaee
>> tck, but that doesn't use the code in question.  If the standalone
>> tck is the normal test method, is there some way I could get access
>> to it?
>
> If you run "ant tester" on the main Tomcat build.xml, that will run
> the internal test suite.  It covers many, but not all, of the same
> tests as the TCK.

I appreciate the info but I'm having some trouble following these  
instructions

$ grep https .svn/entries
    url="https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk"
    repos="https://svn.apache.org/repos/asf"

$ ant tester
Buildfile: build.xml

BUILD FAILED
Target `tester' does not exist in this project.

Total time: 0 seconds

$ ant -p
Buildfile: build.xml

Main targets:

download  Builds and download dependent components
Default target: deploy

In addition I don't see any targets in build.xml that look like they  
run any tests, and with the exception of a few tribes tests I haven't  
found anything that looks like a junit test in the source tree.

Did I check out the wrong source or run the build from the wrong place?

thanks
david jencks


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: Is there a tomcat/jasper test suite?

Posted by Yoav Shapira <yo...@apache.org>.
Hi,

On 4/3/07, David Jencks <da...@yahoo.com> wrote:
> Following Remy's suggestion I implemented web.xml overrides of
> annotations but although the result compiles I have no very good way
> to determine if it works.  I looked around a bit but didn't see any
> unit tests or integration testsuite.  What am I missing?  Right now I
> can really only test the geronimo javaee integration with the javaee
> tck, but that doesn't use the code in question.  If the standalone
> tck is the normal test method, is there some way I could get access
> to it?

If you run "ant tester" on the main Tomcat build.xml, that will run
the internal test suite.  It covers many, but not all, of the same
tests as the TCK.

Yoav

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org