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

`pdk test unit --parallel` not using correct ruby environment

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • PDK 1.5.0, PDK 1.6.0
    • PDK 1.6.1
    • None
      • Packaged PDK installations since 1.5.0.0
    • Puppet Developer Experience
    • Customer Feedback
    • Bug Fix
    • `pdk test unit --parallel` now creates the necessary binstubs needed to run the unit tests in parallel.
    • Needs Assessment

    Description

      It appears that `pdk test unit --parallel` (and specifically the parallel_tests gem) is not using the correct PDK-managed ruby environment since we added the Ruby/Puppet version switching functionality in 1.5.0.

      With a brand new module (`pdk new module testmod` and `pdk new class testmod`) on Ubuntu 14.04:

      $ pdk test unit --parallel
      pdk (INFO): Using Ruby 2.4.4
      pdk (INFO): Using Puppet 5.5.2
      [✔] Preparing to run the unit tests.
      [✖] Running unit tests in parallel.
      pdk (FATAL): Unit test output did not contain a valid JSON result: 1 processes for 1 specs, ~ 1 specs per process
      bundler: command not found: rspec
      Install missing gem executables with `bundle install`
      

      Attachments

        Issue Links

          Activity

            People

              jesse Jesse Scott
              jesse Jesse Scott
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support