lunarmodules / luacov

LuaCov is a simple coverage analyzer for Lua code.
http://lunarmodules.github.io/luacov/
MIT License
300 stars 68 forks source link

Minimum requirement #73

Open InEdited opened 5 years ago

InEdited commented 5 years ago

Added an option to put a minimum coverage constraint. This resolves issue #68

InEdited commented 5 years ago

Just noticed that using this feature with the one implemented in either pull requests #72 or #71 will cause the reporting to always fail, will work on that to make it work only on the tested files.

hishamhm commented 5 years ago

Just noticed that using this feature with the one implemented in either pull requests #72 or #71 will cause the reporting to always fail, will work on that to make it work only on the tested files.

71 is now merged, could you adapt this PR to be based on the current master code instead?

Also, I think users would expect the minimum requirement % calculation to include the untested files when includeuntestedfiles is set.

allbarbos commented 3 years ago

Can I open another PR with the change?

esatterwhite commented 2 years ago

Is this still in progress. Would love to get this feature landed

hishamhm commented 2 years ago

@allbarbos Yes, please!

(I'm very low on bandwidth for maintaining LuaCov — in fact, the previous maintainer passed away and I'm carrying the torch, but I'd love to get some maintainership help on this! If any of you wants to help out, please update this PR and let me know and I'll grant commit access)

Tieske commented 1 year ago

@hishamhm I fixed up the PR. But it has issues beyond the simple feature;

A simple option would be to leave this as it is today, and have a CI user run 2 reports. First the one they want for display/reporting. And then the default one, which will display the error.

(though that means one cannot configure the stats files to be cleared, since the second run would need those as well)

Tieske commented 1 year ago

I'm leaning towards a separate reporter that doesn't really report anything, but just generates the error message.