Unit test in dojo

3.1k Views Asked by At

I'm starting with dojo. Coming from GWT and Backbone, I've worked with junit and jasmine to test my application. After taking a lock on dojo DOH testing framework, I wonder if its worth to use it or would it be better to stay with jan external testing framework like jasmine or busterjs. One of my concerns is that I've not found any source on how to use it with an CI server like jenkins. Also I like to know, if I can use a mocking framwork like sinon with DOH. DOH seems also to lack some convenience matcher like the one in jasmin.

2

There are 2 best solutions below

0
On

You may look into this: http://illegalargumentexception.blogspot.fr/2012/04/dojo-mocking-dependencies-with-doh.html

I believe that with Doh and Doh robot, you may do a lot. Currently experiencing. Will let you know.

3
On

Well, there are some more you might want to check apart from DOH (which works very well). You can check eventd and selenium 2 also. I remember seeing an integration tutorial for Jenkins / selenium 2 haven't tested it though. EDIT: Maybe needs some refresh, but here you might find more infos : https://wiki.jenkins-ci.org/display/JENKINS/Selenium+Plugin