-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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 new test cases for Timer
autostart and paused behavior
#97794
base: master
Are you sure you want to change the base?
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.
Looks good to me, we should run the workflow and make sure the tests pass.
Timer
autostart and paused behavior
It did not, in fact, pass. Most of the errors are about replacing the spaces with tabulation. |
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 don't believe most of these comments are necessary. The code should speak for itself. If comments are necessary, it seems like the SUBCASE macro in this same file is more explicit than a comment.
@@ -212,6 +212,46 @@ TEST_CASE("[SceneTree][Timer] Check Timer timeout signal") { | |||
memdelete(test_timer); | |||
} | |||
|
|||
// Test case for timer autostart feature. | |||
// Ensures that when autostart is enabled, the timer starts automatically when added to scene. | |||
TEST_CASE("[SceneTree][Timer] Autostart behavior") { |
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 sent the review too early but
TEST_CASE("[SceneTree][Timer] Autostart behavior") { | |
TEST_CASE("[SceneTree][Timer] Check Timer Autostart behavior") { |
This pull request adds new unit tests for the
Timer
class to help improve test coverage as part of issue #43440. The tests cover the following scenarios:autostart
property is enabled, the timer starts automatically when added to the scene.Link to pull request issue: #43440
Thanks!