As long as your JS code is clean with low coupling, I think the best solution is to do pure JS testing.
I've done a lot of this. Used Jasmine BDD for testing the javascript code. Very nice testing framework that works both in the browser and headless, from Jenkins/Hudson. http://pivotal.github.com/jasmine/ http://cjohansen.no/en/javascript/test_driven_javascript_done_right http://skaug.no/ingvald/2010/10/javascript-unit-testing.html On Thu, Jun 16, 2011 at 4:09 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 16 Jun 2011 08:43:28 -0300, <p.stavrini...@albourne.com> wrote: > > Hi all, >> > > Hi! > > > We are converting most of our JavaScript code in our Tapestry applications >> into mixins, and I was wandering if anyone can recommend a testing framework >> / methodology for unit testing these mixins. >> > > I use JUnit (it could be TestNG or any other similar framework) + Selenium. > I create a page using the given mixin and test it. This isn't an unit test: > it's an integration one, but it does the work, specially when there's > JavaScript involved. > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, > and instructor > Owner, Ars Machina Tecnologia da Informação Ltda. > http://www.arsmachina.com.br > > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: > users-unsubscribe@tapestry.**apache.org<users-unsubscr...@tapestry.apache.org> > For additional commands, e-mail: users-h...@tapestry.apache.org > >