aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Dojo and Junit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Dojo and Junit" Watch "Dojo and Junit" New topic
Author

Dojo and Junit

roger schildmeijer
Ranch Hand

Joined: Jun 15, 2008
Posts: 40
How well does Dojo development scale with unit testing using Junit?
Peter Svensson
Author
Ranch Hand

Joined: Sep 29, 2008
Posts: 54
Hi,

Dojo has its own unit test system called DOH (Dojo Objective Harness) which can be run headless (and integrated in Java builds) for components which are not widgets and inside a Unit-test web page. DOH is fairly simple to use for custom components as well.

Recently Dojo added a event-playback package called robot, which gives Selenium-like testing functionality as well.

Cheers,
PS

http://unclescript.blogspot.com/
Reghu Ram Thanumalayan
Ranch Hand

Joined: Oct 21, 2003
Posts: 193
Its interesting to know that Dojo has its own Unit testing system. So far, to be honest, I have not unit tested any javascript code I have written. The code always gets tested during the integration tests. I guess, this would be a very good reason to have to look at DOJO.

BTW, are there any other unit test frameworks for Javascript code?

Regards,
Reghu


Cheers,<br />Reghu Ram T<br /> <br />SCJP 1.4 - 98 %, SCBCD 1.3 - 94 %, SCMAD 1.0 - 92 %
Peter Svensson
Author
Ranch Hand

Joined: Sep 29, 2008
Posts: 54
Hi Reghu. I must admit I don't always use unit tests myself. Mostly due to small size of the projects.
Here's a quite good list of other js unit testing frameworks;

http://www.opensourcetesting.org/unit_javascript.php

Cheers,
PS

http://unclescript.blogspot.com/
Nitin V Joshi
Greenhorn

Joined: Feb 17, 2010
Posts: 1
thanks for providing link of java-script testing tools.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dojo and Junit
 
Similar Threads
Tools for testing static methods
Testing tools
Help needed with DOJO and JSP
develop a WebWord Processor Like Ajaxwriter?
Tools for testing static methods