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

Create missing test skeletons when converting a module

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDK 1.14.0
    • Component/s: None
    • Template:
    • Release Notes:
      Enhancement
    • Release Notes Summary:
      A new flag has been added to `pdk convert` (`pdk convert --add-tests`) that will cause PDK to generate skeleton tests for any classes or defined types that don't have any tests.
    • QA Risk Assessment:
      Needs Assessment

      Description

       

      This request was made on the GitHub issue tracker.

      Just a moment ago I used pdk convert to convert an old module I had lying around, which had 3 classes.
       Unfortunately, pdk convert does not create the unit test skeletons for existing classes.
       And pdk new <class>, which does create those test skeletons, doesn't work on an existing class.
      The fact that this functionality is present in PDK but just doesn't seem to be available to me in any way in this particular use case is quite frustrating.
      

       

      On the PSE in the field side, this would be great for universally every Puppet organization making the switch.

       

      I think this idea makes sense, perhaps flagged as pending tests to prevent the newly generated tests from breaking an otherwise clean post-convert test run.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tim.sharpe Tim Sharpe
              Reporter:
              tim.sharpe Tim Sharpe
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support