cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@upaya.co.uk>
Subject Re: Directory layout problem with htmlunit tests
Date Thu, 07 Apr 2005 19:08:24 GMT
Sylvain Wallez wrote:
> 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.

Or unit/functional. That's actually the distinction isn't it?

Upayavira

Mime
View raw message