Skip to content

test(octree): Add unit tests for Octree, OctreeNode, and OctreeRegionUtils#728

Open
Quenty wants to merge 1 commit into
mainfrom
users/quenty/octree-unit-tests
Open

test(octree): Add unit tests for Octree, OctreeNode, and OctreeRegionUtils#728
Quenty wants to merge 1 commit into
mainfrom
users/quenty/octree-unit-tests

Conversation

@Quenty

@Quenty Quenty commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Adds Jest-based unit tests for the octree package covering the public API and internal region utilities, including edge cases.

The tests cover Octree (empty searches, coincident nodes, radius boundaries, k-nearest ordering and bounds, negative and cross-region coordinates, argument validation), OctreeNode (position get/set, no-op reposition, region moves, destruction, unpositioned destroy), and OctreeRegionUtils (inclusive region bounds, octant classification, top-level cell rounding at boundaries and negatives, hashing, region reuse/lookup, subregion creation, node add/move/remove with subregion pruning, and radius neighbor collection).

The package is also wired up for testing following the docs setup: jest.config.lua, a test place project, a server script template, and a test deploy target.

Note: the test deploy target currently has a placeholder placeId. It needs a real place provisioned via nevermore deploy init --create-place (this could not run here because the environment ROBLOSECURITY cookie is expired). Until then the cloud tests job will not be able to run the octree tests.

…Utils

Adds Jest-based unit tests covering the octree public API and its internal
region utilities, including edge cases: empty searches, coincident nodes,
radius boundaries, k-nearest ordering and bounds, negative and cross-region
coordinates, node moves and destruction, inclusive region bounds, octant
classification, top-level cell rounding, and subregion pruning.

Also wires up the package for testing (jest.config, test place project,
server script template, and a test deploy target). The test placeId still
needs provisioning via `nevermore deploy init --create-place`.
@github-actions

github-actions Bot commented Jul 14, 2026

Copy link
Copy Markdown

Deploy Results

Package Status Try it
@quenty/integration ✅ Deployed (v82) (1.9s) Open | Play

1 deployed, 1 passed, 0 failed in 2.6s · View logs

Test Results

Package Status Error Try it
@quenty/octree Failed at uploading (449ms) Upload failed: 400 Bad Request: {"code":"InvalidRequest","message":"Invalid P...

1 tested, 0 passed, 1 failed in 1.4s · View logs

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant