ui5-test-runner
Version:
Standalone test runner for UI5
100 lines (99 loc) • 5.14 kB
HTML
<html>
<head>
<title>ui5-test-runner</title>
<link rel="stylesheet" href="/_/report/styles.css">
<script>window.module = window.module || {}</script>
<script src="/_/punyexpr.js"></script>
<script>window.punyexpr = module.exports.punyexpr</script>
<script src="/_/punybind.js"></script>
<script src="/_/report/common.js"></script>
<script src="/_/report/main.js"></script>
</head>
<body>
<div {{if}}="!(qunitPage || qunitTest)">
<h1>{{ status || 'Test report' }}</h1>
<div {{if}}="end === undefined" class="elapsed">In progress since {{ elapsed(start) }}</div>
<div {{else}} class="elapsed">Duration : {{ elapsed(start, end) }} <a href="#" id="download">📦</a></div>
<div {{if}}="timedOut">
⏲️ Timed out
</div>
<table style="visibility: {{ testPageUrls.length > 0 ? 'visible' : 'hidden' }};">
<tr>
<th> </th>
<th class="count">Type</th>
<th class="status" style="width: 10rem;"><div><span>Status</span></div></th>
<th class="count">Tests</th>
<th class="count">Passed</th>
<th class="count">Failed</th>
<th class="elapsed">Elapsed</th>
</tr>
<tr {{for}}="url of testPageUrls">
<td class="truncated">
<span {{if}}="qunitPages === undefined || !qunitPages[url]">{{ url }}</span>
<a {{else}} href="#{{ qunitPages[url].id }}">{{ url }}</a>
</td>
<td>
<span {{if}}="!qunitPages[url]">-</span>
<span {{elseif}}="qunitPages[url].isOpa" title="OPA test">🥼</span>
<span {{elseif}}="qunitPages[url].start" title="Unit test">🧪</span>
</td>
<td>
<span {{if}}="!qunitPages[url]">-</span>
<span {{elseif}}="qunitPages[url].failed">❌</span>
<span {{elseif}}="qunitPages[url].end">✔️</span>
<span {{if}}="!qunitPages[url].end">
<progress max="{{ qunitPages[url].count }}" value="{{ qunitPages[url].failed + qunitPages[url].passed }}"></progress>
</span>
</td>
<td>{{ qunitPages[url] ? qunitPages[url].count : '-' }}</td>
<td>{{ qunitPages[url] ? qunitPages[url].passed : '-' }}</td>
<td>{{ qunitPages[url] ? qunitPages[url].failed : '-' }}</td>
<td>
<span {{if}}="!qunitPages[url]">-</span>
<span {{elseif}}="qunitPages[url].end === undefined">{{ elapsed(qunitPages[url].start) }}</span>
<span {{else}}>{{ elapsed(qunitPages[url].start, qunitPages[url].end) }}</span>
</td>
</tr>
</table>
</div>
<div {{if}}="qunitPage">
<h1 class="truncated">{{ qunitPage.url }}</h1>
<a href="#">⏴ back to report</a>
<div {{if}}="qunitPage.end === undefined" class="elapsed">In progress since {{ elapsed(qunitPage.start) }}</div>
<div {{else}} class="elapsed">Duration : {{ elapsed(qunitPage.start, qunitPage.end) }}</div>
<div {{if}}="timedOut">
⏲️ Timed out
</div>
<div {{for}}="module of qunitPage.modules">
<h2>{{ module.name }}</h2>
<div {{for}}="test of module.tests">
<a {{if}}="!test.skip" href="#{{ qunitPage.id }}-{{ test.testId }}">{{ test.name }}</a>
<span {{else}}>{{ test.name }}</span>
<span {{if}}="test.skip">⏸️</span>
<span {{elseif}}="!test.end" class="elapsed">{{ elapsed(test.start) }}</span>
<span {{elseif}}="test.report && !test.report.failed">✔️ {{ elapsed(test.start, test.end) }}</span>
<span {{elseif}}="test.report">❌ {{ elapsed(test.start, test.end) }}</span>
</div>
</div>
</div>
<div {{elseif}}="qunitTest">
<h1 class="truncated">{{ qunitTest.url }}</h1>
<a href="#">⏴ back to report</a>
<h2>{{ qunitTest.module }}</h2>
<a href="#{{ qunitTest.pageId }}">⏴ back to page</a>
<h3>{{ qunitTest.name }}
<span {{if}}="qunitTest.report && qunitTest.report.passed">✔️</span>
<span {{elseif}}="qunitTest.report">❌</span>
</h3>
<div {{if}}="qunitTest.end === undefined" class="elapsed">In progress since {{ elapsed(qunitTest.start) }}</div>
<div {{else}} class="elapsed">Duration : {{ elapsed(qunitTest.start, qunitTest.end) }}</div>
<div {{for}}="log of qunitTest.logs">
<pre {{if}}="log.result">✔️ {{ log.message }}</pre>
<pre {{else}}>❌ {{ log.message }}</pre>
<img {{if}}="log.screenshot" loading="lazy" class="log" src="{{ qunitTest.pageId }}/{{ log.screenshot }}" alt="Copy folder '{{ qunitTest.pageId }}' from the job report">
</div>
<img {{if}}="qunitTest.screenshot" loading="lazy" class="log" src="{{ qunitTest.pageId }}/{{ qunitTest.screenshot }}" alt="Copy folder '{{ qunitTest.pageId }}' from the job report">
</div>
<div style="display: {{ disconnected ? 'block' : 'none' }};">❌ Disconnected</div>
</body>
</html>