Opened 10 years ago

Closed 10 years ago

#14490 closed defect (wontfix)

The package name cannot start with "tests" for DOH test.

Reported by: helloworld Owned by: Rawld Gill
Priority: high Milestone: tbd
Component: Loader Version: 1.7.0
Keywords: DOH tests Cc:
Blocked By: Blocking:


If the root folder for tomcat webapps is "js/dojo/...", and I put runTests.html,module.js,Foo2test.js in "js/tests/...",

Then when running the test, failed with 404, say it cannot find file under "js/dojo/tests/.../module.js". but DOH should find the module.js under "js/tests/.../module.js".

But if I change "js/tests/..." into "js/test/...", then test case passed.

Change History (2)

comment:1 Changed 10 years ago by ben hockey

Component: TestFrameworkLoader
Owner: set to Rawld Gill
severity: majornormal

this is due to the loader's default configuration for a "tests" package. see

you have a few options:

  • use "test" rather than "tests" as you've mentioned
  • add a config to override the default config

if i'm not mistaken, this default config is to support some legacy behavior wrt dojo's tests and with that being the case, due to our commitment to backwards compatibility it may be unlikely that the default configuration is going to be changed.

leaving this open for rawld to comment/close.

comment:2 Changed 10 years ago by Rawld Gill

Resolution: wontfix
Status: newclosed

agree with neonstalwart's advice.

Note: See TracTickets for help on using tickets.