-
Notifications
You must be signed in to change notification settings - Fork 263
Adjust duration output from the execution summary lines #23
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
Conversation
I definitely prefer the new output! I find the new output less surprising--the original discrepancy between |
block() | ||
let end = currentTimeIntervalSinceReferenceTime() | ||
|
||
return end-start |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Other binary operations in this codebase, such as +=
, have a space on each side of the operator. For consistency this should be return end - start
, with spaces.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed!
bbe2fb6
to
61ddd74
Compare
Instead of outputting the average and summed execution time for each test run, output the summed execution time of each test run and the total elapsed time between the beginning and end of the test case's execution. The new output follows the behavior of Darwin's XCTest framework.
Brian, thanks for the patches that fix up the output of the summaries and of the assertion failures. I'll look at them in detail as soon as I return! Mike
|
👍 enjoy the holidays! |
this looks good to me. Presumably this subsumes the change in pull request #21. Can you please close that one? |
Adjust duration output from the execution summary lines
Instead of outputting the average and summed execution time for each test
run, output the summed execution time of each test run and the total
elapsed time between the beginning and end of the test case's execution.
The new output follows the behavior of Darwin's XCTest framework.
Old behavior example excerpt:
New behavior example excerpt (matching Darwin XCTest):
Other implementation changes:
TimeInterval
forDouble
to increase explicitnessIf this PR is accepted, it makes #21 obsolete, and also resolves SR-334.