[PDK-1051] rspec-puppet: Display coverage report results via the RSpec reporter Created: 2018/06/25  Updated: 2018/07/26  Resolved: 2018/07/09

Status: Closed
Project: Puppet Development Kit
Component/s: None
Affects Version/s: None
Fix Version/s: PDK 1.6.1

Type: Bug Priority: Normal
Reporter: Tim Sharpe Assignee: Tim Sharpe
Resolution: Fixed Votes: 0
Labels: resolved-issue-added
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance Criteria:

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

 Description   

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.


Generated at Thu Jan 23 00:29:17 PST 2020 using JIRA 7.7.1#77002-sha1:e75ca93d5574d9409c0630b81c894d9065296414.