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-373) Make test unit --list consistent with test unit #216

Merged
merged 3 commits into from
Aug 2, 2017

Conversation

james-stocks
Copy link

pdk test unit was using a pattern defined in puppetlabs_spec_helper while pdk test unit --list was using no pattern.
This commit updates the --list option to use a puppetlabs_spec_helper rake task so it uses the same pattern.

`pdk test unit` was using a pattern defined in puppetlabs_spec_helper while `pdk test unit --list` was using no pattern.
This commit updates the --list option to use a puppetlabs_spec_helper rake task so it uses the same pattern.
next
end
if options.key?(:parallel)
json_result.push(PDK::Util.find_valid_json_in(result[:stdout]))
Copy link
Contributor

Choose a reason for hiding this comment

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

This will only get the first JSON result, but in parallel there will be many. I'll push a fix and an acceptance test.

Copy link
Author

Choose a reason for hiding this comment

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

Apologies @austb I didn't realise that this was the point at which parallel results were actually gathered together

Copy link
Contributor

Choose a reason for hiding this comment

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

No problem @james-stocks, just pushed a new acceptance test. And it made me realize that it can only parallelize when there are multiple spec files. So I learned something about what I did 👍

@puppetlabs puppetlabs deleted a comment from coveralls Aug 2, 2017
@puppetlabs puppetlabs deleted a comment from coveralls Aug 2, 2017
@puppetlabs puppetlabs deleted a comment from coveralls Aug 2, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 90.382% when pulling ca2a4b7 on james-stocks:PDK-373 into 48741a5 on puppetlabs:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 90.457% when pulling 2f65a99 on james-stocks:PDK-373 into 48741a5 on puppetlabs:master.

@scotje scotje added bug and removed bug labels Aug 2, 2017
Copy link
Contributor

@scotje scotje left a comment

Choose a reason for hiding this comment

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

Testing this did remind me that we need to figure out the upgrade story soon so that certain versions of the pdk can require template and/or metagem upgrades to support new functionality.

@scotje scotje merged commit a1d5353 into puppetlabs:master Aug 2, 2017
@DavidS DavidS deleted the PDK-373 branch August 3, 2017 08:39
rodjek added a commit to rodjek/pdk that referenced this pull request Nov 22, 2017
rodjek added a commit to rodjek/pdk that referenced this pull request Nov 22, 2017
rodjek added a commit to rodjek/pdk that referenced this pull request Nov 22, 2017
rodjek added a commit that referenced this pull request Nov 23, 2017
(maint) Update PDK::Test::Unit.parallel_with_no_tests? for PSH #216 changes
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