Question

I have gone thru the intern-tutorial which is a very simple unit test case. However, it's not clear to me if the directory structure can be different and how flexible intern's configuration can be to accommodate it.

I'd like to find a tutorial that showed the v1.1 intern locations expected... which locations are mandatory and which can be modified and how that impacts the config file (intern.js) settings. What is the directory structure intern expects for a project and what is changeable, such as when you have multiple packages even.

In particular I'd like to see the relative location relationships of the:

  • web root
  • intern dir
  • intern.js config file
  • unit-test files
  • dojo/dijig/dojox/etc package location
  • modules in a package

Please show how placement relates to the configuration settings if possible.

Était-ce utile?

La solution

As of Intern 1.1, the only thing that is mandatory is that Intern be installed as an npm dependency of the root project being tested. There are no relationships to any of the things you asked about, except that everything needs to be within the project’s root directory.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top