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

Guillaume Déflache guillaume.deflache at wyona.com
Fri Oct 24 18:10:23 CEST 2008


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


More information about the Yanel-development mailing list