Skip to content

Rename tests.shaders.cross fixture to tests.shaderCompilation.comprehensiveGLSL#1724

Open
bghgary wants to merge 1 commit into
BabylonJS:masterfrom
bghgary:rename-shaders-cross-fixture
Open

Rename tests.shaders.cross fixture to tests.shaderCompilation.comprehensiveGLSL#1724
bghgary wants to merge 1 commit into
BabylonJS:masterfrom
bghgary:rename-shaders-cross-fixture

Conversation

@bghgary
Copy link
Copy Markdown
Contributor

@bghgary bghgary commented May 29, 2026

Context

Every JS fixture in Apps/UnitTests/JavaScript/src/ mirrors the matching cpp file's suite name:

  • tests.shaderCache.basicScene.tsTests.ShaderCache.cpp
  • tests.externalTexture.msaa.tsTests.ExternalTexture.Msaa.cpp

tests.shaders.cross.ts doesn't follow this convention and reads as opaque. It's the comprehensive GLSL shader fixture loaded by TEST(ShaderCompilation, CompileComprehensiveGLSL) in Tests.ShaderCompilation.cpp.

Change

Rename tests.shaders.cross.{ts,js}tests.shaderCompilation.comprehensiveGLSL.{ts,js}. Updates CMakeLists.txt asset list, webpack.config.js entry, and the ScriptLoader::LoadScript path in Tests.ShaderCompilation.cpp. No test-code change.

[Created by Copilot on behalf of @bghgary]

…comprehensiveGLSL

The `tests.shaders.cross` name doesn't follow the convention of every
other JS fixture in this directory, which mirrors the matching cpp file's
suite name (`tests.shaderCache.basicScene.ts` ↔ `Tests.ShaderCache.cpp`,
`tests.externalTexture.msaa.ts` ↔ `Tests.ExternalTexture.Msaa.cpp`).
The fixture is the comprehensive GLSL shader loaded by
`TEST(ShaderCompilation, CompileComprehensiveGLSL)` in
`Tests.ShaderCompilation.cpp`.

Rename to `tests.shaderCompilation.comprehensiveGLSL.{ts,js}` so the
fixture name matches the suite + asset descriptor convention.

CMakeLists, webpack entry, and the ScriptLoader path are updated to
match. No test-code change.

[Created by Copilot on behalf of @bghgary]

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 29, 2026 15:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR renames the comprehensive GLSL shader-compilation JavaScript fixture so that the fixture naming in Apps/UnitTests/JavaScript/src/ mirrors the corresponding C++ test suite naming (specifically TEST(ShaderCompilation, CompileComprehensiveGLSL)).

Changes:

  • Renamed the shader compilation fixture output/entry to tests.shaderCompilation.comprehensiveGLSL.
  • Updated the C++ unit test to load the renamed fixture asset.
  • Updated build plumbing (CMake asset list + webpack entry) and the committed dist/ bundle to match the new name.

Reviewed changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
Apps/UnitTests/Source/Tests.ShaderCompilation.cpp Updates ScriptLoader::LoadScript path to the renamed JS asset.
Apps/UnitTests/JavaScript/webpack.config.js Renames the webpack entry key and input TS file path.
Apps/UnitTests/JavaScript/src/tests.shaderCompilation.comprehensiveGLSL.ts Adds the renamed TypeScript fixture source for comprehensive GLSL compilation.
Apps/UnitTests/JavaScript/dist/tests.shaderCompilation.comprehensiveGLSL.js Updates the committed webpack output bundle to match the renamed entry/source.
Apps/UnitTests/CMakeLists.txt Updates TEST_ASSETS list to copy the renamed dist/ JS file into the test assets.

@bghgary bghgary changed the title tests: rename tests.shaders.cross fixture to tests.shaderCompilation.comprehensiveGLSL Rename tests.shaders.cross fixture to tests.shaderCompilation.comprehensiveGLSL May 29, 2026
@bghgary bghgary enabled auto-merge (squash) May 29, 2026 20:05
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.

2 participants