Skip to content

Commit cd8118f

Browse files
committed
Add comment for projectCoverageReport index.html generation
1 parent 9f79589 commit cd8118f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lib/cover-project.nix

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@
33
project:
44

55
let
6+
7+
# Create table rows for an project coverage index page that look something like:
8+
#
9+
# | Package | TestSuite |
10+
# |------------------+-----------|
11+
# | cardano-shell | test-1 |
12+
# | | test-2 |
13+
# | cardano-launcher | test-1 |
14+
# | | test-2 |
15+
#
16+
# The logic is a little complex to ensure that only the first test
17+
# is listed alongside the package, the second test is accompanied by
18+
# a blank 'Package' entry.
619
packageTableRows = package: with lib;
720
let
821
testsOnly = filterAttrs (n: d: isDerivation d) package.components.tests;

0 commit comments

Comments
 (0)