-
Notifications
You must be signed in to change notification settings - Fork 14
/
mockdata.js
67 lines (59 loc) · 1.47 KB
/
mockdata.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
/* This is a sample configuration file.
* Copy this file to server.settings.js and edit that file to fit your
* Cassandra connection and other settings.
*
* You can also override these settings with command line options, run
* $ node server.js --help
* to view them.
*/
/*This will mimic the test table in cassandra, containing 4 tests
where 2 are regressions and 2 are fixes*/
var result = [{
test: '{"prefix":"enwiki","title":"John rocks your sox","oldid":12345}',
errors: 2,
fails: 3,
skips: 2,
old_errors: 0,
old_fails: 0,
old_skips: 1
}, {
test: '{"prefix":"enwiki","title":"Sox rocks John","oldid":54321}',
errors: 0,
fails: 0,
skips: 100,
old_errors: 0,
old_fails: 0,
old_skips: 0
}, {
test: '{"prefix":"enwiki","title":"Javascript: All day Err day","oldid":911}',
errors: 0,
fails: 0,
skips: 0,
old_errors: 5,
old_skips: 10,
old_fails: 15
}, {
test: '{"prefix":"enwiki","title":"Cassandra owns MySQL","oldid":119}',
errors: 0,
fails: 0,
skips: 1,
old_errors: 0,
old_fails: 2,
old_skips: 1
}];
module.exports = {
numtests: 159637,
noskips: 135388,
nofails: 159158,
noerrors: 159605,
latestcommit: "2k3jdk3kedkc3dkdek3jjkdjc",
beforelatestcommit: "7kdo3ko99kdo393kdk39d", //the commit before the latest one
averages: {
errors: 0,
fails: 0,
skips: 0.5,
scores: 150
},
crashes: 1,
testdata: result
};