[Yanel-dev] Writing junit and htmlunit tests for Yanel resources

Alec Bickerton alec.bickerton at wyona.com
Tue Oct 28 10:08:01 CET 2008


Guillaume Déflache wrote:
> Michael Wechner schrieb:
>> Guillaume Déflache schrieb:
>>> Michael Wechner schrieb:
>>>> Also please note to introduce a subdirectory such as
>>>>
>>>> MY_RESOURCE/src/test/junit/CLASSES
>>>> MY_RESOURCE/src/test/htmlunit/CLASSES
>>>
>>> Great stuff! :)
>>>
>>> Just a minor nit: is there a particular reason why the tests have to
>>> be split in two directories, 
>>
>> I think the reason is that Test and WebTest are not limited to junit
>> and htmlunit, but could also be implemented by some other framework.
>> But by differentiating this on the file level one can differentiate
>> nicely.
>>
>> Makes sense?
>>> given that the test classes themselves already follow another
>>> convention (*Test/*WebTest)? Being able to see all the tests for a
>>> given package no matter how they are run could be helpful IMHO.
>>
>> agreed, but see above?
>>
>> Any suggestions to how to combine these two arguments?
> 
> 
> Probably way too late but I would suggest:
> - MY_RESOURCE/src/test/junit/**/*.Test.java ->
> MY_RESOURCE/src/test/**/*JUnitTest.java
> - MY_RESOURCE/src/test/htmlunit/**/*WebTest.java ->
> MY_RESOURCE/src/test/**/*HTMLUnitTest.java

The information is already in the path. Why be verbose we you don't need
to be.

-1



More information about the Yanel-development mailing list