Multiple JS Registries
In some cases it is required exactly to define which bundles/packages are available during the test execution. This is possible by providing a test configuration to the runner.html:
http://localhost:8080/resources/jsregistry/root/<name of test framework>/<version>/runner.html?boot=/js/test-init.js&test=helloworld/tests/hello
In the sample URL the test-init.js
is located at src/main/js
and has following contents:
test-init.js
testConfig({
jsregistry: [{
//root: "url to registry.. if not defined the local registry at /resources/jsregistry/root is assumed"
packages: [
// register all self hosted packages
"*"
]
},
{
root: "http://myhostname:8080/mapapps/resources/jsregistry/root",
packages: [
// list the packages which should be loaded from this registry
// <name>@<version range expression>
"apprt@3.1.x"
]
}
]
});