forked from lotterfriends/online-junit-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
75 lines (69 loc) · 2.65 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="normalize.css" type="text/css">
<link rel="stylesheet" href="sakura-dark.css" type="text/css">
<title>JUnit Parser</title>
<meta name="description" content="A JUnit parser, visualizer and format converter">
<meta name="keywords" content="JUnit, JSON, Parser">
<meta name="author" content="André Tarnowsky">
<style>
body { max-width: 55em; }
textarea { font-size: 12px; }
pre { font-size: .75em; }
em { font-size: .75em; }
label { display: inline; }
.testsuite-name, .testcase-name { max-width: 400px;overflow: hidden;display: inline-block;white-space: nowrap;text-overflow: ellipsis;vertical-align: middle; }
.testcase-name { max-width: 600px;}
.copy-link { float:right; margin-top: -2em;}
.plot-rect {
opacity: 0.8;
}
.plot-rect:hover {
opacity: 1;
fill: #FFFFFF;
cursor: pointer;
}
</style>
</head>
<body>
<h1>JUnit Parser</h1>
<div id="plotVector" width="100%"></div>
<div>
<textarea class="xml"
placeholder="XML - paste, or use button below to load from file..."
rows="15"></textarea>
<input type="file" id="file" name="file" accept="application/xml"
title="Load JUnit XML from file" />
</div>
<details>
<summary>JSON</summary>
<div>
<a class="copy-link" onclick="copyTextToClipboard(document.querySelector('textarea.json'))" href="#">Copy to Clipboard</a>
<textarea class="json" placeholder="JSON" rows="15" readonly></textarea>
</div>
</details>
<details>
<summary>HTML</summary>
<div>
<a class="copy-link" onclick="copyTextToClipboard(document.querySelector('textarea.html'))" href="#">Copy to Clipboard</a>
<textarea class="html" placeholder="HTML" rows="15" readonly></textarea>
</div>
</details>
<div id="result"></div>
<div id="settings">
<input id="settingPlotPassed" class="setting" type="checkbox" checked>
<label for="settingPlotPassed">Plot passed tests.</label>
<input id="settingPlotSkipped" class="setting" type="checkbox" checked>
<label for="settingPlotSkipped">Plot skipped tests.</label>
<input id="settingPlotFailed" class="setting" type="checkbox" checked>
<label for="settingPlotFailed">Plot failed tests.</label>
<input id="settingErrorIsFailure" class="setting" type="checkbox" checked>
<label for="settingErrorIsFailure">Treat errors as if they were failures.</label>
</div>
<script src="junit_parser.js"></script>
</body>
</html>