Hi all,
I am really labouring, trying to understand how to test my application with DOH.
The article on the documentation page assumes a lot of prior knowledge about how this should work and I simply cannot see how to get started.
I have an application that I want to test. So I try to follow what DOH is doing and how it is used in core and dijit, but Its just not getting any clearer.
It looks like I need to invoke an HTML page (lets call that runTests.html) that redirects to dojo's own testrunner.html with one of a number of parameters e.g.
then I need a file called application.js where I can register my tests e.g.
doh.registerUrl("tests.1", dojo.moduleUrl(".", "test1.html"));
My app layout looks like this...
root
--pages
--tests
----runTests.html
----application.js
----test1.html
Seemed a reasonable start point from looking at the testrunner.html
However when I submit a request for the URL http://localhost/myApp/tests/runTests.html
I get the whole set of the tests in dojo executed. I simply do not understand how to start my own tests.
Any help appreciated.
Paul B.
