Reputation: 765
I am a novice to Dojo, and I wrote a few unit tests following the normal convention and structure. I also have written tests for widgets.
I tried to run the tests using the same command I use for the unit tests:
java -jar path/to/js.jar path/to/dojo/dojo.js baseUrl=path/to/dojo load=doh test=path/to/test/module
The output says that there are no tests.
0 tests to run in 0 groups
My question is:
Is it possible to run the tests for widgets in command line? Thank you all for your time
Upvotes: 0
Views: 858
Reputation: 970
I'm not sure why you get a report saying "0 tests ... in 0 groups" - that implies that your tests couldn't be found rather than that they failed to run.
It is possible to run some limited tests for widgets from a command line, but you'll find various problems with that:
node dojo\dojo.js load=doh test=dijit\tests\module.js
(or your js.jar instead of node) from the root of your Dojo SDK directory: you'll get lots of complaints about window
not existing or that registerUrl
hasn't been declaredUpvotes: 3