-
Notifications
You must be signed in to change notification settings - Fork 0
/
_SpecRunner.html
69 lines (43 loc) · 1.91 KB
/
_SpecRunner.html
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Jasmine Spec Runner</title>
<link rel="stylesheet" type="text/css" href=".grunt/grunt-contrib-jasmine/jasmine.css">
<script type="text/javascript" src="./.grunt/grunt-contrib-jasmine/jasmine.js"></script>
<script type="text/javascript" src="./.grunt/grunt-contrib-jasmine/jasmine-html.js"></script>
<script type="text/javascript" src="https://rally1.rallydev.com/apps/2.0rc2/sdk-debug.js"></script>
<script type="text/javascript" src="./.grunt/grunt-contrib-jasmine/reporter.js"></script>
<script type="text/javascript" src="./App.js"></script>
<script type="text/javascript" src="./Gruntfile.js"></script>
<script type="text/javascript" src="./test/AppSpec.js"></script>
</head>
<body>
<script type="text/javascript">
Ext.require([
'Rally.sdk.Bootstrapper',
'metric.GreenTimePerDayForOneBuild'
], function () {
//Redefine onReady - bug in phantomjs such that onload isn't triggered for <link>, so the default Rally onReady won't work consistently
Rally.sdk.Bootstrapper.onReady = function (onready) {
if (!Rally.environment) {
Ext.create('Rally.sdk.env.Global').setup();
}
onready();
};
Rally.onReady(function () {
Ext.onReady(function() {
var jasmineEnv = jasmine.getEnv();
jasmineEnv.updateInterval = 1000;
var htmlReporter = new jasmine.HtmlReporter();
jasmineEnv.addReporter(htmlReporter);
jasmineEnv.specFilter = function (spec) {
return htmlReporter.specFilter(spec);
};
jasmineEnv.execute();
});
});
});
</script>
</body>
</html>