File tree Expand file tree Collapse file tree 1 file changed +21
-22
lines changed Expand file tree Collapse file tree 1 file changed +21
-22
lines changed Original file line number Diff line number Diff line change @@ -10,19 +10,12 @@ coverageReports:
10
10
let
11
11
toBashArray = arr : "(" + ( lib . concatStringsSep " " arr ) + ")" ;
12
12
13
- # Create table rows for a project coverage index page that look something like:
14
- #
15
- # | Package |
16
- # |------------------|
17
- # | cardano-shell |
18
- # | cardano-launcher |
19
- coverageTableRows = coverageReport :
13
+ # Create a list element for a project coverage index page.
14
+ coverageListElement = coverageReport :
20
15
''
21
- <tr>
22
- <td>
23
- <a href="${ coverageReport . passthru . name } /hpc_index.html">${ coverageReport . passthru . name } </href>
24
- </td>
25
- </tr>
16
+ <li>
17
+ <a href="${ coverageReport . passthru . name } /hpc_index.html">${ coverageReport . passthru . name } </a>
18
+ </li>
26
19
'' ;
27
20
28
21
projectIndexHtml = pkgs . writeText "index.html" ''
31
24
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
32
25
</head>
33
26
<body>
34
- <table border="1" width="100%">
35
- <tbody>
36
- <tr>
37
- <th>Report</th>
38
- </tr>
39
-
40
- ${ with lib ; concatStringsSep "\n " ( map coverageTableRows coverageReports ) }
41
-
42
- </tbody>
43
- </table>
27
+ <div>
28
+ <h2>Union Report</h2>
29
+ <p>The following report shows how each module is covered by any test in the project:</p>
30
+ <ul>
31
+ <li>
32
+ <a href="all/hpc_index.html">all</a>
33
+ </li>
34
+ </ul>
35
+ </div>
36
+ <div>
37
+ <h2>Individual Reports</h2>
38
+ <p>The following reports show how each module is covered by tests in its own package:</p>
39
+ <ul>
40
+ ${ with lib ; concatStringsSep "\n " ( map coverageListElement coverageReports ) }
41
+ </ul>
42
+ </div>
44
43
</body>
45
44
</html>
46
45
'' ;
You can’t perform that action at this time.
0 commit comments