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

Support setting a test specific timeout through test.json. #81

Merged
merged 4 commits into from
Sep 7, 2023

Conversation

tmds
Copy link
Member

@tmds tmds commented Sep 5, 2023

Fixes #65.

This enables setting a higher timeout than the default for tests that are expected to take longer.

This enables setting a higher timeout than the default
for tests that are expected to take longer.
@tmds tmds requested a review from omajid September 5, 2023 14:49
string elapsedTime = testTime.TotalMilliseconds.ToString();
int minutes = (int)testTime.TotalMinutes;
string elapsedTime = minutes == 0 ? $"{testTime.Seconds}s"
: $"{minutes}m {testTime.Seconds}s";
Copy link
Member Author

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.

Copy link
Member

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?

Copy link
Member Author

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.

README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Copy link
Member

@omajid omajid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@tmds tmds merged commit 24e42c3 into redhat-developer:main Sep 7, 2023
26 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Timeout configurable per test
2 participants