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

Enable loading of texture assets in unit tests #6928

Merged
merged 4 commits into from
Sep 9, 2024
Merged

Conversation

willeastcott
Copy link
Contributor

@willeastcott willeastcott commented Sep 8, 2024

This PR augments the Node-based unit tests to be able to load Image objects. This means that we can now unit test engine code that loads texture assets from images. This is critical to be able to test much of the engine (including sprites, elements, particle systems and much more).

I confirm I have read the contributing guidelines and signed the Contributor License Agreement.

Copy link
Member

@slimbuck slimbuck left a comment

Choose a reason for hiding this comment

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

<3

@willeastcott willeastcott merged commit a9d5cc6 into main Sep 9, 2024
8 checks passed
@willeastcott willeastcott deleted the test-textures branch September 9, 2024 06:39
marklundin added a commit that referenced this pull request Sep 10, 2024
marklundin added a commit that referenced this pull request Sep 11, 2024
marklundin added a commit that referenced this pull request Sep 17, 2024
* Enable loading of texture assets in unit tests (#6928)

* Update package.json and import statements

* Refactor asset loading test in AssetRegistry

---------

Co-authored-by: Will Eastcott <[email protected]>
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.

2 participants