Closed Felixoid closed 4 years ago
@Felixoid I'm wondering if #805 addressed this a different way now? (I think report[:coverage]
should now be 100.00
if there are zero resources)
Closing this as it has been addressed in a different way through #805. Please feel free to re-open this, or create a new issue if your problem persisted.
THank you. I'm not able to check it out yet but looks pretty promising. I'll come back in case of problems!
RSpec::Puppet::Coverage.report!(percents)
raises test failure if the total amount of tested puppet resources is 0. So either it annoys during ruby code development or should be mitigated with the following snippet in spec_helper.rbThis PR implement checking of coverage only on total checked puppet resources greater than 0.