aboutsummaryrefslogtreecommitdiffstats
path: root/template/summary_result_tpl.html
blob: c8f0f99fe726f4bb72ea21895c9779c796010210 (plain)
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html>
        <head>
                <meta charset="utf-8"/>
                <title>{{ data.test_name }} test report</title>
                <style>body {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 12px;
    min-width: 800px;
    color: #999;
}

h1 {
    font-size: 24px;
    color: black;
}

h2 {
    font-size: 16px;
    color: black;
}

p {
    color: black;
}

a {
    color: #999;
}

table {
    border-collapse: collapse;
}

/******************************
 * TEST RESULT COLORS
 ******************************/
span.passed,
.passed .col-result {
    color: green;
}

span.skipped,
span.xfailed,
span.xpassed,
.skipped .col-result,
.xfailed .col-result,
.xpassed .col-result {
    color: orange;
}

span.failed,
.failed .col-result {
    color: red;
}

/******************************
 * RESULTS TABLE
 * Table Layout
 ******************************/
#results-table {
    border: 1px solid #e6e6e6;
    color: #666;
    font-size: 12px;
    width: 50%;
}
#results-table th,
#results-table td {
    padding: 5px;
    border: 1px solid #E6E6E6;
    text-align: left;
}
#results-table th {
    font-weight: bold;
}

                </style>
        </head>

        <body>
                <h1>{{ data.test_name }} test report</h1>
                <p>Report generated on {{ data.date_F }} at {{ data.date_T }} by <a href="https://git.automotivelinux.org/src/agl-test-framework/">agl-test-framework</a> </p>
                <h2>Summary</h2>
{{ data.test_suite_status_html }}
                <p>{{ data.collected }} test cases ran </p>
                <span class="passed">{{ data.passed }} passed</span>,
                <span class="skipped">{{ data.skipped }} skipped</span>,
                <span class="failed">{{ data.failed }} failed</span>,
                <span class="xfailed">{{ data.xfailed }} expected failures</span>,
                <span class="xpassed">{{ data.xpassed }} unexpected passes</span>
                <h2>Details</h2>
                <table id="results-table">
                        <thead>
                                <tr>
                                <th>Result</th>
                                <th>Test Case</th>
                                </tr>
                        </thead>
{{ data.case_status_html }}
                </table>
        </body>
</html>