myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wessendorf" <mat...@apache.org>
Subject Re: Javascript and Unit Tests
Date Fri, 05 Dec 2008 06:47:23 GMT
On Thu, Dec 4, 2008 at 11:23 PM, Werner Punz <werner.punz@gmail.com> wrote:
> Hello everyone
>
> today I started to work on the ajax parts of jsf2
> for now I am still up to the tasks of setting up the entire
> infrastructure.
>
> So far I have found a decent unit test environment which integrates
> into maven (Berlios JsUnit) which gives about the same functionality as
> junit.

cool. I want something similar for Trinidad as well
(at least for those bits that are easy to test and don't need
(too much) mocks)

>
> The main issue I face is, while the javascript interpreter is up to the
> task, it simply is Mozillas Rhino engine, the entire environment is not.
>
> The biggest issue is I miss some kind of dom simulation giving me the entire
> dom infrastructure a browser has.
> I have started to implement a subset of dom mock objects with their
> functions, but after rethinking, I dont want to reinvent the wheel here.
>
> Does anyone know of a browser mockup library or something similar
> (an environment which allows to run a browser in headless mode?)
> To get the dom environment?

we do (internally) something with selenium, where we fire up browsers
in an automated test scenario.

>
> Werner
>
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf

Mime
View raw message