You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Flagged as a gap while fixing #684 (PR #734) and #732 (PR #733) — both fixes shipped without regression tests because there's no existing test scaffolding for either module.
`ZEngine/tests/` has no directory for `Importers/` (GltfImporter, FbxImporter, AssimpImporter, EnvironmentMapImporter) or `UI/` (ZUIDockspace, ZUILayout, etc.)
Both modules currently only get exercised manually (drag a panel, import a model) — there's no way to lock in a regression once found
CMake registration under `ZEngine/tests/Importers/` following the existing pattern in `ZEngine/tests/CMakeLists.txt`
At minimum: a test that imports a valid multi-submesh file and checks output vertex/index counts, and a test that imports the malformed fixture and asserts no crash + optimization was skipped for the bad submesh
ZUI:
A test directory for `ZUIDockspace` / `ZUILayout` — these operate on plain structs (`ZUIDockTree`, `ZUIDockNode`) with no GPU/window dependency, so they're actually straightforward to unit test in isolation
At minimum: a test that builds a dock tree, calls `ZUIDockLayout` with a shrinking root rect across multiple frames, and asserts no leaf rect ever has negative or zero width/height (regression coverage for panel docking on windows something trigger vkCmdSetScissor error #732)
Context
Flagged as a gap while fixing #684 (PR #734) and #732 (PR #733) — both fixes shipped without regression tests because there's no existing test scaffolding for either module.
What's needed
Importers:
ZUI:
Related