-
Notifications
You must be signed in to change notification settings - Fork 0
/
testem.mustache
61 lines (53 loc) · 1.71 KB
/
testem.mustache
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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Test'em</title>
<link rel="stylesheet" href="/node_modules/jasmine-core/lib/jasmine-core/jasmine.css">
<script src="/node_modules/jasmine-core/lib/jasmine-core/jasmine.js"></script>
<script src="/node_modules/jasmine-core/lib/jasmine-core/jasmine-html.js"></script>
<script src="/jasmine-custom-boot.js"></script>
<script src="/testem.js"></script>
<script src="/node_modules/jquery/dist/jquery.min.js"></script>
<script src="/node_modules/underscore/underscore-min.js"></script>
<script src="/node_modules/backbone/backbone-min.js"></script>
<script src="/node_modules/protobufjs/dist/protobuf.min.js"></script>
<script src="/dist/shaft.js"></script>
<script>
protobuf.load([
"spec/proto/collections.proto",
"spec/proto/models.proto",
"spec/proto/repeated.proto",
"spec/proto/nested.proto",
"spec/proto/defaults.proto",
"spec/proto/any.proto",
"spec/proto/enumerations.proto"
], function(err, protos) {
if (err) {
console.error("proto parse error", err);
}
shaft.loadAll(protos);
runSpecs();
});
</script>
<script>
Testem.afterTests(
function(config, data, callback) {
var coverage = JSON.stringify(window.__coverage__);
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (xhr.readyState === 4) {
callback();
}
};
xhr.open('POST', '/coverage', true);
xhr.send(coverage);
});
</script>
{{#serve_files}}
<script src="/{{src}}"></script>
{{/serve_files}}
</head>
<body>
</body>
</html>