This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Test Driven devlopment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Test Driven devlopment" Watch "Test Driven devlopment" New topic
Author

Test Driven devlopment

Abhijith Prabhakar
Ranch Hand

Joined: Dec 29, 2006
Posts: 56
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

Joined: Oct 03, 2010
Posts: 46
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

Joined: Dec 29, 2006
Posts: 56
Thanks for the honest reply..will be interesting to read your book though
Filipi Zimermann
Greenhorn

Joined: Mar 26, 2008
Posts: 21
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

Joined: Mar 26, 2008
Posts: 21
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

Joined: Oct 03, 2010
Posts: 46
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

    Joined: Dec 29, 2006
    Posts: 56
    Thanks for you suggestions!!

    We have started evaluating Selenium. We will also look into the other which you have mentioned. Thanks again
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Test Driven devlopment
     
    Similar Threads
    TDD starting OO
    Agile Java Developer, Confidential, South East Michigan
    automatic failure
    Programming Katas
    Is unit testing and test driven development the same?