Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. Apr 25, 2021
  2. Apr 20, 2021
  3. Apr 18, 2021
  4. Apr 17, 2021
  5. Apr 14, 2021
  6. Apr 12, 2021
  7. Apr 10, 2021
    • Ollie Charles's avatar
      Fix test --enable-coverage for multi-package projects · 9d16b3ec
      Ollie Charles authored and Ollie Charles's avatar Ollie Charles committed
      Currently, if you have multiple packages in a project and try and run
      the test suite of a single package with --enable-coverage, hpc will fail
      to run. The problem is that _all_ dependencies of the package are built
      with `-fhpc`, but when we run `hpc markup`, we are only passing the
      `.mix` directory of the package being tested. Because we built all
      dependencies with `-fhpc` and we haven't excluded them from the report,
      we need to supply their `.mix` directories too.
      
      The above suggests one fix - compute the transitive closure of all
      `.mix` directories. However, there is another solution - change from
      using an exclude-list to using an include-list. This is the approach
      used in this commit.
      
      Explicitly enumerating all modules to _include_ in the report is simpler
      to code, but is also more likely to be what the user is interested in.
      Generally, when one generates a coverage report from a test-suite, they
      want to understand the coverage of the unit being tested. Having
      coverage information from dependencies is usually not relevant. This is
      also the behavior from old-style Cabal builds, where there wasn't even
      a notion of a Cabal project.
      
      Fixes #5433.
      9d16b3ec
  8. Apr 09, 2021
  9. Apr 06, 2021
  10. Apr 03, 2021
  11. Apr 02, 2021
  12. Apr 01, 2021
  13. Mar 25, 2021
  14. Mar 20, 2021
  15. Mar 19, 2021
  16. Mar 18, 2021
  17. Mar 14, 2021
  18. Mar 12, 2021
  19. Mar 11, 2021
  20. Mar 10, 2021
Loading