• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Dojo and Junit

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How well does Dojo development scale with unit testing using Junit?
 
Author
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/
 
Ranch Hand
Posts: 193
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for providing link of java-script testing tools.
 
I don't like that guy. The tiny ad agrees with me.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic