-
Notifications
You must be signed in to change notification settings - Fork 846
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stack test --coverage shouldn't include tests in reports #634
Comments
Another aspect of this is that currently coverage applies to all of the packages at once. This is pretty cool, but probably not what you want as a default. With larger projects it also seems to be prone to triggering some ghc / hpc bugs (#607). Thankfully, |
Got it, the package filter needs to look like |
@mboes How's this look? |
Restrict HPC reports to just the library the TestSuite came from #634
LGTM. |
The intention of
stack test --coverage
is to provide a report about test coverage, i.e. how good are tests at exercising all of the library/program. In this light, we don't care about whether tests themselves have good coverage. Typically tests have very good coverage, but programs very bad coverage. So including the tests in the results biases the overall coverage report towards being too optimistic.Perhaps adding/removing tests from the coverage report should be the matter of a flag.
The text was updated successfully, but these errors were encountered: