/
tmrwebRequire.js
executable file
·75 lines (59 loc) · 2.06 KB
/
tmrwebRequire.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
var jmrOnReady = function () {
console.log("Test Model Reporter is ready (jmrOnReady callback can be overriden [e.g. jmrOnReady=function(tmr){}]");
}, jmr;
/**
* RequireJS Main Configuration
*/
require.config({
baseUrl: "",
paths: {
"underscore": "node_modules/underscore/underscore-min",
"jsutils": "node_modules/js.utils/target/jsutils-require-min",
"libDomReady": "lib/domReady",
"jmrModule": "jmr",
"jmrBaseModule": "src/model/Base",
"jmrMapperModule": "src/model/junit/Mapper",
"jmrEnumModule": "src/model/junit/Enum",
"jmrUtilsModule": "src/utils/Utils",
"jmrConfigModule": "src/Config",
"jmrReporterModelModule": "src/reporter/ReporterModel",
"jmrModelErrModule": "src/model/junit/Error",
"jmrModelFailureModule": "src/model/junit/Failure",
"jmrModelSkippedModule": "src/model/junit/Skipped",
"jmrModelTCaseModule": "src/model/junit/TestCase",
"jmrModelTSuiteModule": "src/model/junit/TestSuite",
"jmrModelTSuitesModule": "src/model/junit/TestSuites",
"jmrModelSystemModule": "src/model/junit/System",
"jmrModelUtilsModule": "src/model/Utils",
// junit
"jmrReporterJunitModule": "src/reporter/junit/Reporter",
// TODO developer mode : for the browser build first the templates bundle - node src/reporter/TemplateBuilder.js
"jmrTemplatesBundleModule": "src/reporter/tplbundle"
},
shim: {
'underscore': {
exports: "_"
},
"jsutils": {
exports: "jsutils"
},
"jmrReporterJunitModule": {
deps: ["underscore", "jsutils"]
},
"jmrModule": {
deps: ["underscore", "jsutils"]
},
"jmrConfigModule": {
deps: ["underscore", "jsutils"]
}
},
out: "tmr-min.js",
name: "jmr"
});
require(["libDomReady", "jmrModule"], function (domReady, jmrModule) {
debugger;
domReady(function () {
debugger;
jmr = jmrModule;
});
});