-
Notifications
You must be signed in to change notification settings - Fork 10
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
Support setting a test specific timeout through test.json. #81
Conversation
This enables setting a higher timeout than the default for tests that are expected to take longer.
Turkey/TestOutputFormat.cs
Outdated
string elapsedTime = testTime.TotalMilliseconds.ToString(); | ||
int minutes = (int)testTime.TotalMinutes; | ||
string elapsedTime = minutes == 0 ? $"{testTime.Seconds}s" | ||
: $"{minutes}m {testTime.Seconds}s"; |
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.
I've also included this (unrelated) change which makes it easier to read the elapsed time.
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.
A bunch of tests now show (0s)
. Do you think printing the time in milliseconds might be useful for those tests?
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.
I can add additional code to round that up to 1s, but the millisecond precision isn't useful imo.
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.
Thanks!
Co-authored-by: Omair Majid <[email protected]>
Fixes #65.
This enables setting a higher timeout than the default for tests that are expected to take longer.