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

don't ignore min_coverage in mix coveralls.json #297

Open
duksis opened this issue Dec 7, 2022 · 4 comments · May be fixed by #305
Open

don't ignore min_coverage in mix coveralls.json #297

duksis opened this issue Dec 7, 2022 · 4 comments · May be fixed by #305

Comments

@duksis
Copy link

duksis commented Dec 7, 2022

First of all - thanks for your work!

currently min_coverage option seems to only be taken into account
when using mix coveralls and mix coveralls.html tasks.

https://github.com/parroty/excoveralls/blame/b706b5da6d3a62ff51552059cf57726c6ad104e5/README.md#L426...L427

I would like to use the min_coverage option and generate a json file.

if I understand that right I would need to run my test suite twice in order to achieve both - the failure on below min_coverage and a json file.

I would prefer not to do that.

  1. Is there another way to achieve both?
  2. would it make sense to check min_coverage in mix coveralls.json?

Thanks

@parroty
Copy link
Owner

parroty commented Dec 11, 2022

Thank you for the feedback 🙇 . I assume it's related to #286.

While it may make sense to have that feature for mix coveralls.json, my concern is that it can become a breaking change. If it can be taken as optional feature, it might be good to add that capability, though.

@danielatdpg
Copy link

@parroty couldn't find any reports here but the same thing happens with coveralls.github the min coverage is just ignored.

@nathany-copia
Copy link

nathany-copia commented Aug 17, 2023

+1 for not ignoring minimum_coverage when running mix coveralls.github too

I'm currently seeing this situation on GitHub Actions:

coverage/coveralls Expected — Waiting for status to be reported

Even though coverage is visible on their website:

Successfully uploaded the report to 'https://coveralls.io/'

To work around that (for now), I could disable the branch requirement for coverage/coveralls. But it would be nice if the coveralls.json minimum_coverage setting would act as a fallback in that situation, so we still fail CI if coverage falls too much.

@parroty
Copy link
Owner

parroty commented Aug 24, 2023

Thank you for the comment 🙇 . I am now checking this item through #305.

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

Successfully merging a pull request may close this issue.

4 participants