-
Notifications
You must be signed in to change notification settings - Fork 77
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
Show proc time on queryTests.php #612
Conversation
zackgalbreath
commented
Jan 12, 2018
- Clean up the queryTests.php API endpoint
- Show Processors & Proc Time on this page when appropriate
- Better display of test timing on this page
Remove unused $required parameter from get_project_from_request(). Assume that a project is required.
get_project_from_request() now calls can_access_project(). The caller is no longer expected to call both functions in sequence.
ad4ddc3
to
0b17163
Compare
We get this for free now by including pdo.php
Previously, queryTests.php showed test timing as a float with no units (ie 0.05). Instead we now show nicely formatted time values, like on viewTest.php (50ms).
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.
This all looks good to me, though I was a little surprised by the local functions that were added to the testManageMeasurements test. Was there any reason in particular for doing it that way? Just curious.
Thanks for the review!
All this "proc time" stuff gets tested with manageMeasurements.php because this test creates (and deletes) the "Processors" test measurement, which turns on the proc time feature. I agree that it would probably be cleaner to split these up a bit. Perhaps this is something to keep in mind if/when we start using CTest test fixtures to manage test state dependencies better. |