Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dojo and Junit

 
roger schildmeijer
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How well does Dojo development scale with unit testing using Junit?
 
Peter Svensson
Author
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 193
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Peter Svensson
Author
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for providing link of java-script testing tools.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic