[PDK-1051] rspec-puppet: Display coverage report results via the RSpec reporter Created: 2018/06/25 Updated: 2018/07/26 Resolved: 2018/07/09
|Project:||Puppet Development Kit|
|Fix Version/s:||PDK 1.6.1|
|Reporter:||Tim Sharpe||Assignee:||Tim Sharpe|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
When running an rspec-puppet suite with `--format json`, the coverage results should be included in the JSON output.
|Method Found:||Needs Assessment|
|Release Notes:||Bug Fix|
|Release Notes Summary:||PDK will now display the results of an rspec-puppet test coverage report (if the user has enabled coverage reporting in their rspec-puppet configuration)|
|QA Risk Assessment:||Needs Assessment|
As reported in https://github.com/puppetlabs/pdk/issues/471, it's not currently possible for PDK users to see the rspec-puppet generated resource coverage report (if they have it configured) when running `pdk test unit` as the results are currently printed directly to stdout and not sent to the RSpec reporter. This means that they are not part of the JSON object that PDK reads in to display to the user.