Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Test Driven devlopment

 
Abhijith Prabhakar
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Christian,

Welcome to JavaRanch!!

We are starting a new development project with GWT. We are planning to follow agile methodology such as Scrum, Pair programming and test driven development. We are in the process of defining testing strategy for our project.

Will your book be useful for us in defining this? If yes, can you tell me briefly how?. Thanks.

Regards,
Abhijith
 
Christian Johansen
author
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Abhijith,

I have to be honest and say I'm not entirely sure. I have not used GWT personally, but as far as I understand, it is a framework where you write Java which is in turn compiled into JavaScript. My book deals with working directly with JavaScript, and I'm not even sure if you ever do that with GWT.
 
Abhijith Prabhakar
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the honest reply..will be interesting to read your book though
 
Filipi Zimermann
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can say that maybe it is useful to use a javascript testing tool with GWT.

But it doesn't make sense to test the code generated by the GWT. You have no control of it.
Maybe your own extensions testing would be nice to do.

I never went that far with GWT.
 
Filipi Zimermann
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe Selenium (http://seleniumhq.org/) might be a nice tool for you.
Not a javascript testing tool, but a client-side test automation that works with firefox and Google Chrome.

People are calling it BDD. Behavior Driven Development.
Very fun with some ruby tools
 
Christian Johansen
author
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Selenium is worth a shot for acceptance testing, but it is of little help (IMO) for more fine-grained functional or unit testing. If you write JavaScript on your own, I highly recommend you use a unit testing framework to test the code directly. As I've said a few times already, I currently prefer JsTestDriver (http://code.google.com/p/js-test-driver/), but there are lots of other tools. Some examples:

  • QUnit
  • YUI Test
  • Jasmine
  • JSpec

  •  
    Abhijith Prabhakar
    Ranch Hand
    Posts: 56
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thanks for you suggestions!!

    We have started evaluating Selenium. We will also look into the other which you have mentioned. Thanks again
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic