dark theme for coverage report
This commit is contained in:
parent
338f09a5d1
commit
d3c227cf33
2 changed files with 48 additions and 0 deletions
46
build/bcov.css
Normal file
46
build/bcov.css
Normal file
|
|
@ -0,0 +1,46 @@
|
||||||
|
/* Based upon the lcov CSS style, style files can be reused - Dark Theme */
|
||||||
|
body { color: #e0e0e0; background-color: #1e1e1e; }
|
||||||
|
a:link { color: #6b9aff; text-decoration: underline; }
|
||||||
|
a:visited { color: #4dbb7a; text-decoration: underline; }
|
||||||
|
a:active { color: #ff6b8a; text-decoration: underline; }
|
||||||
|
td.title { text-align: center; padding-bottom: 10px; font-size: 20pt; font-weight: bold; }
|
||||||
|
td.ruler { background-color: #4a6ba8; }
|
||||||
|
td.headerItem { text-align: right; padding-right: 6px; font-family: sans-serif; font-weight: bold; }
|
||||||
|
td.headerValue { text-align: left; color: #6b9aff; font-family: sans-serif; font-weight: bold; }
|
||||||
|
td.versionInfo { text-align: center; padding-top: 2px; }
|
||||||
|
th.headerItem { text-align: right; padding-right: 6px; font-family: sans-serif; font-weight: bold; }
|
||||||
|
th.headerValue { text-align: left; color: #6b9aff; font-family: sans-serif; font-weight: bold; }
|
||||||
|
pre.source { font-family: monospace; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
|
||||||
|
span.lineNum { background-color: #5a5a2a; }
|
||||||
|
span.lineNumLegend { background-color: #5a5a2a; width: 96px; font-weight: bold ;}
|
||||||
|
span.lineCov { background-color: #2d5a2d; }
|
||||||
|
span.linePartCov { background-color: #707000; }
|
||||||
|
span.lineNoCov { background-color: #762c2c; }
|
||||||
|
span.orderNum { background-color: #5a4a2a; float: right; width:5em; text-align: left; }
|
||||||
|
span.orderNumLegend { background-color: #5a4a2a; width: 96px; font-weight: bold ;}
|
||||||
|
span.coverHits { background-color: #4a4a2a; padding-left: 3px; padding-right: 1px; text-align: right; list-style-type: none; display: inline-block; width: 5em; }
|
||||||
|
span.coverHitsLegend { background-color: #4a4a2a; width: 96px; font-weight: bold; margin: 0 auto;}
|
||||||
|
td.tableHead { text-align: center; color: #e0e0e0; background-color: #4a6ba8; font-family: sans-serif; font-size: 120%; font-weight: bold; }
|
||||||
|
td.coverFile { text-align: left; padding-left: 10px; padding-right: 20px; color: #6b9aff; font-family: monospace; background-color: #3a3a3a; }
|
||||||
|
td.coverBar { padding-left: 10px; padding-right: 10px; background-color: #3a3a3a; }
|
||||||
|
td.coverBarOutline { background-color: #4a4a4a; }
|
||||||
|
td.coverPer { text-align: left; padding-left: 10px; padding-right: 10px; font-weight: bold; background-color: #3a3a3a; color: #e0e0e0; }
|
||||||
|
td.coverPerLeftMed { text-align: left; padding-left: 10px; padding-right: 10px; background-color: #5a5a00; font-weight: bold; color: #e0e0e0; }
|
||||||
|
td.coverPerLeftLo { text-align: left; padding-left: 10px; padding-right: 10px; background-color: #5a2d2d; font-weight: bold; color: #e0e0e0; }
|
||||||
|
td.coverPerLeftHi { text-align: left; padding-left: 10px; padding-right: 10px; background-color: #2d5a2d; font-weight: bold; color: #e0e0e0; }
|
||||||
|
td.coverNum { text-align: right; padding-left: 10px; padding-right: 10px; background-color: #3a3a3a; color: #e0e0e0; }
|
||||||
|
|
||||||
|
/* Override tablesorter hover styles for dark theme */
|
||||||
|
.tablesorter-blue tbody > tr:hover > td,
|
||||||
|
.tablesorter-blue tbody > tr:hover + tr.tablesorter-childRow > td,
|
||||||
|
.tablesorter-blue tbody > tr:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td,
|
||||||
|
.tablesorter-blue tbody > tr.even:hover > td,
|
||||||
|
.tablesorter-blue tbody > tr.even:hover + tr.tablesorter-childRow > td,
|
||||||
|
.tablesorter-blue tbody > tr.even:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td {
|
||||||
|
background: #4a4a4a;
|
||||||
|
}
|
||||||
|
.tablesorter-blue tbody > tr.odd:hover > td,
|
||||||
|
.tablesorter-blue tbody > tr.odd:hover + tr.tablesorter-childRow > td,
|
||||||
|
.tablesorter-blue tbody > tr.odd:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td {
|
||||||
|
background: #4a4a4a;
|
||||||
|
}
|
||||||
|
|
@ -62,6 +62,8 @@ pub fn addCoverageStep(b: *Build, test_exe: *Build.Step.Compile) void {
|
||||||
|
|
||||||
const run_coverage = b.addSystemCommand(&.{kcov.path});
|
const run_coverage = b.addSystemCommand(&.{kcov.path});
|
||||||
run_coverage.addArgs(&.{ "--include-path", "src/" });
|
run_coverage.addArgs(&.{ "--include-path", "src/" });
|
||||||
|
const css_file = b.pathJoin(&.{ b.build_root.path.?, "build", "bcov.css" });
|
||||||
|
run_coverage.addArg(b.fmt("--configure=css-file={s}", .{css_file}));
|
||||||
run_coverage.addArg(coverage_dir);
|
run_coverage.addArg(coverage_dir);
|
||||||
run_coverage.addArtifactArg(test_exe);
|
run_coverage.addArtifactArg(test_exe);
|
||||||
run_coverage.step.dependOn(&test_exe.step);
|
run_coverage.step.dependOn(&test_exe.step);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue