TST add comprehensive headless WebGL rendering tests#606
Merged
mvdoc merged 3 commits intogallantlab:mainfrom Mar 22, 2026
Merged
TST add comprehensive headless WebGL rendering tests#606mvdoc merged 3 commits intogallantlab:mainfrom
mvdoc merged 3 commits intogallantlab:mainfrom
Conversation
Add test_webgl_headless.py with 32 parametrized tests covering: - All 6 data types (Volume, Vertex, VolumeRGB, VertexRGB, Volume2D, Vertex2D) - All 13 predefined camera angles - All 5 surface morph states (fiducial to flatmap) - All 5 predefined panel layouts - _capture_view roundtrip verification - Overlay visibility comparison (with/without ROIs) - addData dataset switching (xfail: closure not available in headless path) Uses class-scoped fixtures to share browser sessions across angle and surface tests, reducing total runtime from ~15 min to ~6 min.
07a9c85 to
caed40c
Compare
The file is created (touched) by the POST handler before image data is written. In CI with slow software rendering, _wait_for_file was returning too early on a 0-byte file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cortex/tests/test_webgl_headless.pywith 32 parametrized tests that exercise the headless WebGL viewer across all supported data types, camera angles, surface states, and panel layoutsTest coverage
angle_view_paramsparams_*layouts_set_view→_capture_viewparameter verification_convert_datasetclosureTest plan
pytest cortex/tests/test_webgl_headless.py -v— 31 passed, 1 xfailpytest cortex/tests/test_headless.py cortex/tests/test_export.py -v— existing 7 tests still pass