-
Notifications
You must be signed in to change notification settings - Fork 7
Add timer to tests #376
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
Add timer to tests #376
Conversation
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.
Pull Request Overview
This PR adds execution timing functionality to the system tests by tracking how long each test command takes to run and displaying the elapsed time to the user.
- Replaces
printstatements withsys.stdout.writefor output formatting - Implements timer logic using
time.time()to measure test execution duration - Displays elapsed time in seconds after each test completes
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
samcunliffe
left a comment
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.
No output in logs 😞
|
Output is now visible in the logs: https://github.com/UCL/TDMS/actions/runs/17826245607/job/50680792730#step:9:17 |
samcunliffe
left a comment
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.
You've still got too many sig. fig.s to my taste. And elapsed not ellapsed (annoyingly elipse ellipse is the other way around).
But now working 👍
Co-authored-by: Sam Cunliffe <[email protected]>
Adds a timer to the system tests