Hi Inge, Thiago,

Firstly, Thanks guys for your replies! 

I was aware of Jasmine, but not JsTestDriver... together they look very 
promising (powerful) for unit tests. I think I will give them a go. 

As for Selenium, we had used it in the past for integration testing, but we 
wrote only one larger scale test with broad coverage... It was pretty good as 
well, but we found the test got outdated almost as quick as we could write it. 
After a time we were not maintaining it because it was quite time consuming to 
do. Worst case I will revisit Selenium and have a rethink about better 
maintenance this time. 

Thanks again!
Peter 
 
----- Original Message -----
From: "Inge Solvoll" <inge.tapes...@gmail.com>
To: "Tapestry users" <users@tapestry.apache.org>
Sent: Friday, 17 June, 2011 13:11:12 GMT +02:00 Athens, Beirut, Bucharest, 
Istanbul
Subject: Re: Unit testing mixins

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
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to