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

Scene Loading & Editor Snapshot Unit Tests #9468

Merged
merged 17 commits into from Dec 29, 2023

Conversation

SYBIOTE
Copy link
Member

@SYBIOTE SYBIOTE commented Dec 19, 2023

This pull request adds tests for the scene loading functionality in the codebase. It includes tests for loading an empty scene, loading a scene with a root entity, loading a scene with a child entity, and unloading a child entity.

@SYBIOTE SYBIOTE linked an issue Dec 19, 2023 that may be closed by this pull request
8 tasks
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '1'

const modelLink = '/packages/projects/default-project/assets/collisioncube.glb'
const testScene = {
Copy link
Member

Choose a reason for hiding this comment

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

let's put this in a .json file and import it to improve readability of this file

Copy link
Member Author

Choose a reason for hiding this comment

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

roger that, ill put it right next to the file

import { FogSettingsComponent } from '../../../engine/src/scene/components/FogSettingsComponent'
import { EditorControlFunctions } from './EditorControlFunctions'

const testScene = {
Copy link
Member

Choose a reason for hiding this comment

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

let's put this in a .json file and import it to improve readability of this file

packages/editor/src/functions/EditorControlFunctions.ts Outdated Show resolved Hide resolved
@HexaField HexaField changed the title Add tests for scene loading functionality Scene Loading & Editor Controls Unit Tests Dec 27, 2023
@HexaField HexaField changed the title Scene Loading & Editor Controls Unit Tests Scene Loading & Editor Snapshot Unit Tests Dec 27, 2023
@HexaField HexaField added this pull request to the merge queue Dec 29, 2023
Merged via the queue into dev with commit a1995f7 Dec 29, 2023
13 checks passed
@HexaField HexaField deleted the 9381-tests-sceneloadingsystem-and-snapshots branch December 29, 2023 01:40
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.

[Tests]: SceneLoadingSystem and Snapshots
2 participants