commercialhaskell / commercialhaskell/stack
Turning on test coverage rebuilds all packages
Open
blocked
component: build
component: coverage
type: enhancement
- Dominant language
- Haskell
- Stars
- 4.1k
- Forks
- 850
- Avg merge
- 10h 37m
- Merged PRs (30d)
- 4
Description
If I call `stack test --coverage ` in a repository with many packages, all packages (or at least dependencies of "some-package") will be reinstalled with a coverage flag passed to it. This causes a lot of rebuilding (46 packages in my case) and probably generate coverage reports for all of them. In my case, I'm only interested of the coverage of the package I'm testing. Is there a way to tell stack this? If not, would it be possible to add?
Contributor guide
Assessment
This issue has not been assessed yet.