Skip to content

TEST: added visual testing system#1051

Draft
m-agour wants to merge 3 commits into
fury-gl:masterfrom
m-agour:test-set
Draft

TEST: added visual testing system#1051
m-agour wants to merge 3 commits into
fury-gl:masterfrom
m-agour:test-set

Conversation

@m-agour
Copy link
Copy Markdown
Contributor

@m-agour m-agour commented Nov 5, 2025

Added Snapshots analysis system.

Does this mean everything tested is working correctly? No, tests does not cover everything yet, this is just a starting point.
How to proceed from here? whenever we see a bug we apply the visual test and see if the test can't detect the bug we can change the functionality of the snapshot tester and/or add more methods for visual analysis. So, we need to see if everything is workign as expected and before we fix we make this testing syste able to detect it first to prevent future bugs.

@m-agour m-agour added the v2 label Nov 5, 2025
@skoudoro
Copy link
Copy Markdown
Contributor

skoudoro commented Nov 6, 2025

Are @maharshi-gor and you working on the same thing without communication ?

see #1050

I am lost

@m-agour
Copy link
Copy Markdown
Contributor Author

m-agour commented Nov 6, 2025

@skoudoro you are right Serge I didn't see maharshi's PR. they are almost the same. but here I try to use it to detect the errors we already have in fury and we test shading here which is crucial for testing the shaders parts. @maharshi-gor lets talk about this tomorrow.

- Replaced LooseVersion from distutils.version with Version from packaging.version
- Fixes Python 3.12 compatibility where distutils was removed
- This was causing CI failures across all build matrix combinations
- Fixed import in fury.testing doctest: use 'from fury.testing import' instead of 'from fury.testing.snapshot import'
- Fixed test_text_actor_translation_bug: changed 'color' parameter to 'colors' for fury_actor.text()
- Fixed fury.window.analyze_snapshot: changed 'background_threshold' parameter to 'bg_color' to match fury.testing.analyze_snapshot signature
- Fixed fury.window.snapshot doctest: added sphere actor to avoid 'no bounding sphere' error
@skoudoro
Copy link
Copy Markdown
Contributor

Did you and @maharshi-gor talked ?

What is the final conclusion ?

@maharshi-gor maharshi-gor changed the base branch from v2 to master May 20, 2026 17:34
@maharshi-gor maharshi-gor marked this pull request as draft May 20, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants