Skip to content

Commit ab4b7a3

Browse files
committed
feat: html with links to generated reports
1 parent efbb121 commit ab4b7a3

File tree

3 files changed

+99
-0
lines changed

3 files changed

+99
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Project Reports</title>
5+
<link rel="stylesheet" type="text/css" href="reports-style.css">
6+
</head>
7+
<body>
8+
<h1>Project Reports</h1>
9+
10+
<div class="reports-section">
11+
<h2>Main Reports</h2>
12+
<ul>
13+
<li><a href="kover/html/index.html">Code Coverage Report</a></li>
14+
<li><a href="problems/problems-report.html">Build Problems Report</a></li>
15+
<li><a href="project/dependencies/index.html">Dependencies Report</a></li>
16+
<li><a href="dependency-license/index.html">Licenses Report</a></li>
17+
</ul>
18+
</div>
19+
20+
21+
<div class="reports-section">
22+
<h2>Detekt Reports</h2>
23+
<ul>
24+
<li><a href="detekt/html/cosmotech-api-detekt.html">API Module Analysis</a></li>
25+
<li><a href="detekt/html/cosmotech-connector-api-detekt.html">Connector Module Analysis</a></li>
26+
<li><a href="detekt/html/cosmotech-dataset-api-detekt.html">Dataset Module Analysis</a></li>
27+
<li><a href="detekt/html/cosmotech-meta-api-detekt.html">Meta Module Analysis</a></li>
28+
<li><a href="detekt/html/cosmotech-metrics-service-detekt.html">Metrics Module Analysis</a></li>
29+
<li><a href="detekt/html/cosmotech-organization-api-detekt.html">Organization Module Analysis</a></li>
30+
<li><a href="detekt/html/cosmotech-run-api-detekt.html">Run Module Analysis</a></li>
31+
<li><a href="detekt/html/cosmotech-runner-api-detekt.html">Runner Module Analysis</a></li>
32+
<li><a href="detekt/html/cosmotech-solution-api-detekt.html">Solution Module Analysis</a></li>
33+
<li><a href="detekt/html/cosmotech-workspace-api-detekt.html">Workspace Module Analysis</a></li>
34+
</ul>
35+
</div>
36+
</body>
37+
</html>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
body {
2+
font-family: Arial, sans-serif;
3+
margin: 20px;
4+
line-height: 1.6;
5+
max-width: 1200px;
6+
margin: 0 auto;
7+
padding: 20px;
8+
}
9+
h1, h2 {
10+
color: #333;
11+
}
12+
.reports-section {
13+
margin: 20px 0;
14+
}
15+
ul {
16+
list-style-type: none;
17+
padding: 0;
18+
}
19+
li {
20+
margin: 10px 0;
21+
}
22+
a {
23+
color: #0366d6;
24+
text-decoration: none;
25+
display: inline-block;
26+
padding: 4px 0;
27+
}
28+
a:hover {
29+
text-decoration: underline;
30+
}

build.gradle.kts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,3 +641,35 @@ tasks.register<ReportTask>("generateLicenseDoc") {
641641
group = "license"
642642
description = "Generate Licenses report"
643643
}
644+
645+
646+
tasks.register("generateAllReports") {
647+
group = "reporting"
648+
description = "Generates all available reports (test, coverage, dependencies, licenses, detekt)"
649+
dependsOn(
650+
// Test reports, need to gather them first
651+
// "test",
652+
// "integrationTest",
653+
// Coverage reports
654+
"koverHtmlReport",
655+
// Dependency reports
656+
"htmlDependencyReport",
657+
// License reports
658+
"generateLicenseReport",
659+
// Code analysis reports
660+
"detekt"
661+
)
662+
doLast {
663+
// Create reports directory if it doesn't exist
664+
val reportsDir = layout.buildDirectory.get().dir("reports").asFile
665+
reportsDir.mkdirs()
666+
// Copy the template file to the reports directory
667+
copy {
668+
from("api/src/main/resources"){
669+
include("reports-index.html")
670+
include("reports-style.css")
671+
}
672+
into(reportsDir)
673+
}
674+
}
675+
}

0 commit comments

Comments
 (0)