[Yanel-dev] htmlunit tests

simon litwan simon.litwan at wyona.com
Fri Feb 9 09:35:13 CET 2007


Josias Thöny schrieb:
> simon litwan wrote:
>> hi all
>>
>> i think we should add some more tests. i would like to write htmlunit 
>> tests for all the test use-cases under 
>> http://localhost:8080/yanel/test/use-cases/
>>
>> now i'm not sure where to place this tests. at the moment the testing 
>> framework supports resource-type tests and core tests.
>>
>> i think both places are not ideal for this use-case tests. you don't 
>> need to have this use-cases realm so the test would fail if they are 
>> in resource-type or core.
> 
> But if you add the tests to the realm, they will fail if someone does 
> not include the corresponding resource. Most tests are specific to a 
> resource. 
ok i get your point.

Or what kind of tests do you have in mind?
> I would say the tests belong to the resources, and if someone wants to 
> execute the tests, he needs to include the test realm.
maybe we just add a requirement to the testing-framework documentation 
that one needs to have the test and the use-case realm installed.

> Or do you want to test something which is specific to a realm, but not 
> specific to a resource?
actually not. it's just that the htmlunit tests of the resources-type 
test pages which are not automaticly available if you just register the 
resource-type.

simon

> 
> josias
> 
>>
>> couldn't we extend the testing framework to have realm specific tests?
>>
>> simon
>>
>>
> 
> 
> _______________________________________________
> Yanel-development mailing list
> Yanel-development at wyona.com
> http://wyona.com/cgi-bin/mailman/listinfo/yanel-development
> 


-- 
Simon Litwan                               simon.litwan at wyona.com
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org



More information about the Yanel-development mailing list