Uploaded image for project: 'Puppet Development Kit'
  1. Puppet Development Kit
  2. PDK-1051

rspec-puppet: Display coverage report results via the RSpec reporter

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PDK 1.6.1
    • None
    • Hide

      When running an rspec-puppet suite with `--format json`, the coverage results should be included in the JSON output.

      Show
      When running an rspec-puppet suite with `--format json`, the coverage results should be included in the JSON output.
    • Needs Assessment
    • Bug Fix
    • 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)
    • 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.

      Attachments

        Issue Links

          Activity

            People

              tim.sharpe Tim Sharpe
              tim.sharpe Tim Sharpe
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support