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

Add unit tests for PhysicsMaterial #97227

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Conversation

D0V4HKIIN
Copy link
Contributor

Unit tests for PhysicsMaterial for tracker #43440

I am somewhat unsure about the relevancy of theses tests but here they are. Mostly testing setters and getters.

@D0V4HKIIN D0V4HKIIN requested a review from a team as a code owner September 20, 2024 09:54
tests/scene/test_physics_material.h Outdated Show resolved Hide resolved
tests/scene/test_physics_material.h Outdated Show resolved Hide resolved
@AThousandShips AThousandShips added this to the 4.x milestone Sep 20, 2024
@AThousandShips AThousandShips changed the title Unit tests for PhysicsMaterial Add unit tests for PhysicsMaterial Sep 20, 2024
@AThousandShips AThousandShips requested a review from a team September 20, 2024 10:57
@AThousandShips
Copy link
Member

AThousandShips commented Sep 20, 2024

Thank you for your contribution!

These tests look good to me, but can't say if they cover things that we want to test for or not so this will have to be looked over by the physics team to give their approval

If you have any questions, or just want to join the developer community channels, feel free to join the developer chat!

Copy link
Member

@rburing rburing left a 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, as it tests all that can be tested in isolation (using only this class). Please squash the commits as required by our workflow (and ideally, change the commit message to the current title of this PR).

@D0V4HKIIN
Copy link
Contributor Author

Done!

@akien-mga akien-mga modified the milestones: 4.x, 4.4 Oct 4, 2024
@akien-mga akien-mga merged commit d5d014e into godotengine:master Oct 4, 2024
19 checks passed
@akien-mga
Copy link
Member

Thanks! And congrats for your first merged Godot contribution 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants