commercialhaskell / commercialhaskell/stack

Turning on test coverage rebuilds all packages

Open
#1,940 8 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.