From fab58eb7408fa756345f1e6d0eac06bde397d10c Mon Sep 17 00:00:00 2001 From: Rodrigo Mesquita Date: Tue, 19 Dec 2023 12:31:55 +0000 Subject: [PATCH] Update changelog for per-component with coverage #9464 Additionally, a Manual QA note for the same ticket: Running `cabal test cabal-install --enable-coverage` in the root of the cabal project should succeed and generate a coverage report for `cabal-install`. --- changelog.d/pr-9464 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 changelog.d/pr-9464 diff --git a/changelog.d/pr-9464 b/changelog.d/pr-9464 new file mode 100644 index 00000000000..f1fe8b186f8 --- /dev/null +++ b/changelog.d/pr-9464 @@ -0,0 +1,22 @@ +synopsis: Support per-component builds when coverage is enabled +packages: Cabal cabal-install +prs: #9464 +issues: #4798 #5213 #6440 #6397 +significance: significant + +description: { + +Cabal now supports per-component builds when coverage is enabled. This enables +coverage for packages with internal libraries (#6440), and enables coverage for +packages that use backpack (#6397), even though we do not get coverage for +instantiations of an indefinite module (it is not clear what it means for HPC +to support backpack, regardless of Cabal). + +To achieve this, hpc information (`.mix` files) from a library is now written +into the package database of a library under `extraCompilationArtifacts`. + +Cabal configure (via the Setup interface) now accepts --coverage-for=, +a flag which specifies which libraries should be included in the coverage +report for some testsuite. + +}