-
Notifications
You must be signed in to change notification settings - Fork 20
/
Coverage.html
98 lines (98 loc) · 3.85 KB
/
Coverage.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Coverage Reports</title>
<!-- Bootstrap CSS -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome CSS -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Pacifico&display=swap" rel="stylesheet">
<style>
body {
font-family: Arial, sans-serif;
background-color: #f8f9fa;
}
h1 {
text-align: center;
margin-bottom: 20px;
font-family: 'Shadows Into Light', cursive;
color: #fff;
background-color: #007bff;
padding: 20px;
border-radius: 10px;
font-size: 3rem;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.nav-link {
cursor: pointer;
}
.iframe-container {
height: 80vh;
border: 1px solid #ddd;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
overflow: hidden;
}
iframe {
width: 100%;
height: 100%;
border: none;
}
</style>
</head>
<body>
<h1>Coverage Reports</h1>
<div class="container-fluid">
<div class="row">
<nav class="col-md-3 col-lg-2 d-md-block bg-light sidebar">
<div class="sidebar-sticky">
<ul class="nav flex-column">
<li class="nav-item">
<a class="nav-link active" onclick="loadReport('.reports/py/cov/index.html')">
<i class="fab fa-python"></i> Python Coverage
</a>
</li>
<li class="nav-item">
<a class="nav-link" onclick="loadReport('.reports/py/index.html')">
<i class="fab fa-python"></i> Pytest Results
</a>
</li>
<li class="nav-item">
<a class="nav-link" onclick="loadReport('.reports/py/py_bench.html')">
<i class="fas fa-chart-line"></i> Pytest Benchmark
</a>
</li>
<li class="nav-item">
<a class="nav-link" onclick="loadReport('.reports/rust/tests.html')">
<i class="fab fa-rust"></i> Rust Tests (Not yet impl)
</a>
</li>
<li class="nav-item">
<a class="nav-link" onclick="loadReport('.reports/rust/html/index.html')">
<i class="fab fa-rust"></i> Rust Coverage
</a>
</li>
</ul>
</div>
</nav>
<main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-md-4">
<div class="iframe-container">
<iframe id="reportFrame" src=""></iframe>
</div>
</main>
</div>
</div>
<!-- Bootstrap JS and dependencies -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script>
function loadReport(url) {
document.getElementById('reportFrame').src = url;
}
</script>
</body>
</html>