Debian Codegraph @

src/ifcbimtester/bimtester/resources/reports/template.html

raw
1 <!--
2 BIMTester - OpenBIM Auditing Tool
3 Copyright (C) 2021 Dion Moult <[email protected]>
4
5 This file is part of BIMTester.
6
7 BIMTester is free software: you can redistribute it and/or modify
8 it under the terms of the GNU Lesser General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 BIMTester is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public License
18 along with BIMTester. If not, see <http://www.gnu.org/licenses/>.
19 -->
20 <!DOCTYPE html>
21 <html lang={{_lang}}>
22 <head>
23 <meta charset="utf-8" />
24 <meta name="viewport" content="width=device-width, initial-scale=1.0">
25 <meta name="description" content="foobaro">
26 <title>{{name}}</title>
27 <link href="https://fonts.googleapis.com/css?family=Comfortaa|Inconsolata|Open+Sans&display=swap" rel="stylesheet">
28 <style>
29 body { font-family: 'Arial', sans-serif; padding: 10px 40px; }
30 span.time { color: #999; font-style: italic; float: right; }
31 span.step-time { float: right; color: #555; font-size: 0.8em; font-style: italic; }
32 span.success { background-color: #97cc64; padding: 5px; border-radius: 5px; color: #FFF; font-weight: bold; }
33 span.failure { background-color: #fb5a3e; padding: 5px; border-radius: 5px; color: #FFF; font-weight: bold; }
34 p.failure { background-color: #fb5a3e; padding: 5px; border-radius: 5px; color: #fff; }
35 p.unspecified { background-color: #994f00; padding: 5px; border-radius: 5px; color: #fff; }
36 p.skipped { background-color: #8b8d8f; padding: 5px; border-radius: 5px; color: #fff; }
37 p.description { background-color: #eee; border-radius: 5px; padding: 20px; margin-left: auto; margin-right: auto; display: inline-block; font-weight: bold;}
38 li { padding: 10px; font-family: monospace; }
39 li.success { background-color: #b6cca1; color: #333; }
40 li.failure { background-color: #fbb4a8; color: #900; }
41 li.unspecified { background-color: #ffd37f; color: #a30; }
42 li.skipped { background-color: #f5f5f5; color: #333; }
43 li p { margin-bottom: 0px; }
44 footer { color: #999; font-size: 0.8em; }
45 header { text-align: center; }
46 hr { margin: 20px; margin-left: 0px; margin-right: 0px; border: none; border-top: 1px solid #ccc; }
47 </style>
48 </head>
49 <body>
50 <header>
51 <h1>{{name}}</h1>
52 <p><strong>{{time}} {{file_name}}</strong></p>
53 <hr>
54 <span class="{{#is_success}}success{{/is_success}}{{^is_success}}failure{{/is_success}}">{{#is_success}}{{_success}}{{/is_success}}{{^is_success}}{{_failure}}{{/is_success}}</span>
55 {{_tests_passed}}: <strong>{{total_passes}} / {{total_steps}}</strong> ({{pass_rate}}%)
56 <br />
57 {{#description}}
58 <p class="description">
59 {{.}}<br />
60 </p>
61 {{/description}}
62 <hr>
63 </header>
64 {{#scenarios}}
65 <section>
66 <h2>{{name}}</h2>
67 <p>
68 <span class="{{#is_success}}success{{/is_success}}{{^is_success}}failure{{/is_success}}">{{#is_success}}{{_success}}{{/is_success}}{{^is_success}}{{_failure}}{{/is_success}}</span>
69 {{_tests_passed}}: <strong>{{total_passes}} / {{total_steps}}</strong> ({{pass_rate}}%)
70 <span class="time">
71 {{_duration}}: {{time}}s
72 </span>
73 </p>
74 <ol>
75 {{#steps}}
76 <li class="{{#is_success}}success{{/is_success}}{{^is_success}}failure{{/is_success}}{{#is_unspecified}} unspecified{{/is_unspecified}}{{#is_skipped}} skipped{{/is_skipped}}">
77 {{{name}}}
78 <span class="step-time">{{time}}s</span>
79 {{^is_success}}
80 <p class="failure{{#is_unspecified}} unspecified{{/is_unspecified}}{{#is_skipped}} skipped{{/is_skipped}}">
81 {{#error_message}}
82 {{.}}<br />
83 {{/error_message}}
84 </p>
85 {{/is_success}}
86 </li>
87 {{/steps}}
88 </ol>
89 </section>
90 {{/scenarios}}
91 <hr>
92 <footer>
93 <p>
94 {{_auditing}} <a href="https://bonsaibim.org/">Bonsai</a> {{_and}} <a href="http://ifcopenshell.org/">IfcOpenShell</a>.
95 </p>
96 </footer>
97 </body>
98 </html>