Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(PDK-1067) Ensure rspec-core binstubs are created for pdk test unit #546

Merged
merged 2 commits into from
Jul 11, 2018

Conversation

scotje
Copy link
Contributor

@scotje scotje commented Jul 11, 2018

Because of the way the parallel_tests gem invokes rspec, we need to make
sure we have generated a binstub within the module for rspec. Otherwise
when a user invokes pdk test unit --parallel, parallel_tests will
attempt to invoke rspec outside of the PDK-managed Ruby environment.

Because of the way the parallel_tests gem invokes rspec, we need to make
sure we have generated a binstub within the module for rspec. Otherwise
when a user invokes `pdk test unit --parallel`, parallel_tests will
attempt to invoke rspec outside of the PDK-managed Ruby environment.
The package acceptance test suite for multiple puppet version support was
calling `pdk bundle update` which was causing non-packaged gems to be
downloaded into the user cachedir by PDK. This caused later test suites
to resolve onto those non-packaged gems which would cause unexpected
diffs in the module's Gemfile.lock.

This commit updates the multi-puppet test suite to use `pdk bundle
update --local` and also ensures that the PDK user cachedir is cleaned
between each test.
@scotje scotje requested review from rodjek and bmjen July 11, 2018 17:50
@coveralls
Copy link

Coverage Status

Coverage remained the same at 92.918% when pulling 6a3c446 on scotje:1067_test_unit_parallel into 678315f on puppetlabs:master.

Copy link
Contributor

@bmjen bmjen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More tests than code changes! 👍

@bmjen bmjen merged commit 8cd4204 into puppetlabs:master Jul 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants