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-400) Output the rspec run wall time in test unit summary #583

Merged
merged 1 commit into from
Oct 29, 2018

Conversation

rodjek
Copy link
Contributor

@rodjek rodjek commented Oct 26, 2018

Currently pdk test unit outputs the time rspec took to evaluate the
tests in the summary (which is always significantly shorter than the
time taken to execute the command) while pdk test unit --parallel
outputs the wall time for parallel_spec. This leads to a confusing
situation where running tests in parallel seems to be slower than
running the tests sequentially.

This PR changes the behaviour so that the wall time is always printed
(which is, in my humble opinion, the more useful metric in most cases).

Currently `pdk test unit` outputs the time rspec took to evaluate the
tests in the summary (which is always significantly shorter than the
time taken to execute the command) while `pdk test unit --parallel`
outputs the wall time for parallel_spec. This leads to a confusing
situation where running tests in parallel seems to be slower than
running the tests sequentially.

This PR changes the behaviour so that the wall time is always printed
(which is, in my humble opinion, the more useful metric in most cases).
@coveralls
Copy link

Coverage Status

Coverage remained the same at 92.931% when pulling ef20ae6 on rodjek:pdk-400 into cacc136 on puppetlabs:master.

@bmjen bmjen merged commit be59893 into puppetlabs:master Oct 29, 2018
@bmjen bmjen added the bug label Oct 29, 2018
@rodjek rodjek deleted the pdk-400 branch October 29, 2018 23:24
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.

3 participants