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 Decal #93463

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

OneBogdan01
Copy link

Part of the issue: #43440

As stated in the description, I called various setter and getters, then checking whether the function get_aabb() returns the expected result.

@OneBogdan01 OneBogdan01 requested a review from a team as a code owner June 22, 2024 11:38
@AThousandShips AThousandShips changed the title Added unit tests for decal. Add unit tests for Decal Jun 22, 2024
@AThousandShips AThousandShips added this to the 4.x milestone Jun 22, 2024
@OneBogdan01
Copy link
Author

Well, it seems I do not know how to use the clang formatter from Visual Studio. I am sorry.


#ifndef TEST_DECAL_H
#define TEST_DECAL_H
#include "scene/main/scene_tree.h"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
#include "scene/main/scene_tree.h"

Don't need to include this

Copy link
Author

Choose a reason for hiding this comment

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

Can I somehow test my code before opening the pull request?

Copy link
Member

Choose a reason for hiding this comment

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

By building it and running with --test, or enabling CI on your own fork

tests/scene/test_decal.h Outdated Show resolved Hide resolved
tests/test_main.cpp Outdated Show resolved Hide resolved
tests/test_main.cpp Outdated Show resolved Hide resolved
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.

3 participants