haskell.nix/lib
Samuel Evans-Powell 0dca71e2f3
Improve coverage reports (#1548)
* Provide an empty coverage report when package has no coverage

- When covering a project with multiple packages, the project coverage report
  will produce a table of individual coverage reports for each package. The
  links in this table don't go anywhere when a package is uncovered (they are
  broken links).
  - By producing an empty coverage report when a package has no coverage, we fix
    the broken links, and provide a tad more information about the coverage
    state of that package.

* Improve project coverage report index page

- Provide a link to the union/all coverage report.
- Format the reports as a list instead of a table of one column.
- Provide better explanation of what each report means.

* Add warning explaining modules with no coverage

- Modules that have no coverage at all are simply not included in the HTML
  reports generated by HPC.
- Add a warning to the project coverage report index page so users are aware of
  this limitation of HPC.

* Simplify interface of coverageReport

- Remove the concept of "package boundaries" from the "coverageReport" function.
- The "coverageReport" is now a function of:
  - arbitrary checks generating tix files
  - arbitrary mix modules
- This more closely reflects the usage of hpc, which doesn't care about package
  boundaries.
- Use this new "coverageReport" function to simplify the "projectCoverageReport"
  implementation. A project coverage report now simply:
  - copies out constituent coverage reports.
  - writes out an "all coverage report" using all checks in the project and all
    mix modules..
  - writes out a summary index page.
2022-07-19 19:40:41 +12:00
..
spdx Add nixpkgs-2205 and update other nixpkgs pins (#1506) 2022-07-17 18:18:19 +12:00
cabal-licenses.nix LicenseRef-OtherLicense is not free = false (#1006) 2021-01-20 00:27:18 +13:00
cabal-os-arch-comp.nix Update ghcjs810-src.json (#1291) 2021-11-17 02:17:02 +13:00
cabal-project-parser.nix Avoid filtering repo to just 01-index.tar.gz file (#1432) 2022-04-14 02:35:37 +12:00
call-cabal-project-to-nix.nix Avoid filtering repo to just 01-index.tar.gz file (#1432) 2022-04-14 02:35:37 +12:00
call-stack-to-nix.nix Remove canCleanSource (#1409) 2022-03-25 12:57:36 +13:00
check.nix check.nix: Don't cd when src is from srcOnly (#1542) 2022-07-13 12:25:27 +12:00
clean-cabal-component.nix Remove canCleanSource (#1409) 2022-03-25 12:57:36 +13:00
clean-git.nix Fix cleanGit when src is a git submodule. (#1469) 2022-05-13 20:00:41 +12:00
clean-source-haskell.nix Drop 19.09 support (#947) 2020-11-27 10:34:31 +13:00
clean-source-with.nix Support Nix <2.4 (#1418) 2022-03-29 01:24:01 +13:00
compat.nix Fix broken compat attribute 2019-02-12 12:55:10 +10:00
cover-project.nix Improve coverage reports (#1548) 2022-07-19 19:40:41 +12:00
cover.nix Improve coverage reports (#1548) 2022-07-19 19:40:41 +12:00
default.nix Allows project to be easily extended. (#1467) 2022-05-13 21:21:19 +12:00
failed-cabal-configure.nix Add getComponent to project and package (#1060) 2021-03-04 20:10:58 +13:00
fetch-external.nix Provide hackage and stackage from haskell.nix 2019-02-13 14:51:10 +10:00
fetch-resolver.nix Improve cleaning of stack projects (#1074) 2021-03-19 10:25:32 +13:00
ghcjs-project.nix Add nixpkgs-2205 and update other nixpkgs pins (#1506) 2022-07-17 18:18:19 +12:00
hackageIndex.nix [ifd] cabalProjectToNix (#122) 2019-05-18 22:00:28 +08:00
host-map.nix Adds ghcjs and Asterius as cross compilers (#106) 2019-05-16 21:06:16 +08:00
import-and-filter-project.nix Better support for allow-import-from-derivation=false (#1474) 2022-06-02 20:11:27 +12:00
make-source-pins.nix Fix evaluation on Hydra (#153) 2019-06-02 07:21:21 +10:00
materialize.nix Add nixpkgs-2205 and update other nixpkgs pins (#1506) 2022-07-17 18:18:19 +12:00
override-with.nix Provide hackage and stackage from haskell.nix 2019-02-13 14:51:10 +10:00
pkgconf-nixpkgs-map.nix Fixes to help building of all packages in stackage (#1503) 2022-06-02 22:45:09 +12:00
project-overlays.nix Add missing deps to devshell overlay, remove cabalWrapper (#1549) 2022-07-19 19:16:35 +12:00
stack-cache-generator.nix Remove canCleanSource (#1409) 2022-03-25 12:57:36 +13:00
system-nixpkgs-map.nix add glew (#1534) 2022-07-04 09:59:57 +01:00
system-pkgs.nix Fix ghc 9 windows cross compilation (#1450) 2022-05-19 20:21:16 +12:00