reports_index_browserunit.html 4.35 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[% USE date -%]
<html>
    <head>
        <title>Tests reports</title>
        <style type="text/css">
            .test_ok {
                color: #006600;
                font-weight: bold;
            }
            .test_ok A {
                color: #006600;
                font-weight: bold;
            }
            .test_notok {
                color: #FF0000;
                font-weight: bold;
            }
            .test_notok A {
                color: #FF0000;
            }
            .reportdate {
                font-size: small;
            }
        </style>
boklm's avatar
boklm committed
25
        [% INCLUDE togglecontent.js %]
26
27
    </head>
    <body>
boklm's avatar
boklm committed
28
        <h1>Tor Browser Unit Test Reports: [% title %]</h1>
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
        [% FOREACH report IN reports_list %]
        [%
          SET tbbfiles = reports.$report.tbbfiles;
          SET tbbfile = reports.$report.tbbfiles.keys.0;
          SET diff = tbbfiles.$tbbfile.parent_diff;
        %]
        <ul>
            <li><b>Commit:</b> <a href="https://gitweb.torproject.org/tor-browser.git/commit/[% tbbfiles.$tbbfile.commit %]">[% tbbfiles.$tbbfile.commit %]</a></li>
            <li><b>Subject:</b> [% tbbfiles.$tbbfile.commit_subject %]</li>
            <li><b>Run time:</b> [% tbbfiles.$tbbfile.run_time %] seconds (diff: [% diff.run_time %])</li>

            [%
            SET nb_js_fail = 0;
            SET nb_js_fixed = 0;
            FOREACH t IN diff.subtests.keys;
              SET nb_js_fail = nb_js_fail + diff.subtests.$t.fail.size;
              SET nb_js_fixed = nb_js_fixed + diff.subtests.$t.fixed.size;
            END
            %]

            [% IF diff.fail_tests.size %]
            <li><b>[% diff.fail_tests.size %] new failing tests</b>
                <ul>
                    [% FOREACH t IN diff.fail_tests.sort %]
boklm's avatar
boklm committed
53
54
55
56
57
58
                    <li><a href="javascript:togglecontent('fail_test_[% report %]_[% t %]');">[% t %]</a>
                    <div id="fail_test_[% report %]_[% t %]" style="display:none">
                        [% SET test = test_by_name(tbbfiles.$tbbfile.tests, t); %]
                        [% SET type = test.type; INCLUDE "details_${type}.html" from_index=1 %]
                    </div>
                    </li>
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
                    [% END %]
                </ul>
            </li>
            [% END %]

            [% IF nb_js_fail %]
            <li><b>[% nb_js_fail %] new js files failing</b>
                <ul>
                    [% FOREACH t IN diff.subtests.keys %]
                    [% IF ! diff.subtests.$t.fail.size; NEXT; END %]
                        <li>[% t %]:
                           <ul>
                               [% FOREACH js IN diff.subtests.$t.fail %]
                               <li>[% js %]</li>
                               [% END %]
                           </ul>
boklm's avatar
boklm committed
75
76
77
78
79
                           <a href="javascript:togglecontent('js_fail_test_[% report %]_[% t %]');">logs</a>
                           <div id="js_fail_test_[% report %]_[% t %]" style="display:none">
                               [% SET test = test_by_name(tbbfiles.$tbbfile.tests, t); %]
                               [% SET type = test.type; INCLUDE "details_${type}.html" from_index=1 %]
                           </div>
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
                        </li>
                    [% END %]
                </ul>
            </li>
            [% END %]

            [% IF diff.fixed_tests.size %]
            <li><b>[% diff.fixed_tests.size %] fixed tests</b>
                <ul>
                    [% FOREACH t IN diff.fixed_tests.sort %]
                    <li>[% t %]</li>
                    [% END %]
                </ul>
            </li>
            [% END %]

            [% IF nb_js_fixed %]
            <li><b>[% nb_js_fixed %] new js files fixed</b>
                <ul>
                    [% FOREACH t IN diff.subtests.keys %]
                    [% IF ! diff.subtests.$t.fixed.size; NEXT; END %]
                        <li>[% t %]:
                           <ul>
                               [% FOREACH js IN diff.subtests.$t.fixed %]
                               <li>[% js %]</li>
                               [% END %]
                           </ul>
                        </li>
                    [% END %]
                </ul>
            </li>
            [% END %]

            <li><a href="r/[% report %]/[% tbbfile %].html">Details</a></li>
        </ul>
        <hr />
        [% END %]
    </body>
</html>