cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylv...@apache.org>
Subject Directory layout problem with htmlunit tests
Date Thu, 07 Apr 2005 16:21:44 GMT
Hi all,

I encountered some problems with the newly added htmlunit tests in 
Eclipse: the layout of src/test (and other directories) is:
- anteater: anteater xml files that should be deleted in favor of htmlunit
- htmlunit: root of the java source file hierarchy for tests requiring a 
live server
- org: root package of the regular junit tests

This mixing of root package and classification directory confuses 
Eclipse that barfs saying that "htmlunit.org.apache...." isn't in the 
right directory.

Moving all htmlunit classes is not an option as it runs in a different 
context as regular junit tests since it expects a live Cocoon to be 
available to send http requests, and therefore runs externally compared 
to other tests that run internally.

To solve this problem and clarify the different test categories, I 
propose to split them into disctinct directories :
- src/test/internal for current junit tests
- src/test/external for htmlunit tests.

Using the "external" name rather than "htmlunit" leaves room for other 
external test tools such as httpunit.

WDYT ?

Sylvain

-- 
Sylvain Wallez                        Anyware Technologies
http://apache.org/~sylvain            http://anyware-tech.com
Apache Software Foundation Member     Research & Technology Director


Mime
View raw message