Skip to content
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

Allow switching the "primary" coverage criterion #843

Open
PragTob opened this issue Jan 28, 2020 · 0 comments
Open

Allow switching the "primary" coverage criterion #843

PragTob opened this issue Jan 28, 2020 · 0 comments
Labels

Comments

@PragTob
Copy link
Collaborator

PragTob commented Jan 28, 2020

It'd be nice if we were able to switch what you want to see as the primary coverage criterion. Right now simplecov still always treats line coverage as the main thing that it displays big and bold.

If we could do something like:

SimpleCov.start do
  enable_coverage :branch
  primary_coverage :branch
end

It'd be great if these exchanged places and branch coverages would be considered the main and default coverage type.

Meaning not only that it'd be displayed in the HTML formatter and console output first and foremost, but also that if we just did minimum_coverage 90 it'd mean a minimum of 90% branch coverage instead of line coverage (which it currently hard defaults to).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant