GIMP now has UI tests gimp.org · 52 points · 28 comments · HN thread TL;DR GIMP ...
HN Best 200 @best
GIMP now has UI tests gimp.org · 52 points · 28 comments · HN thread
TL;DR GIMP announced a new GUI testing platform with 13 automated UI tests that launch a real, hidden GIMP instance, click menus and buttons, and check the results. The tests find controls through accessibility data rather than screen pixels, run headlessly on Linux CI, and rely on dogtail, with a new headless feature contributed upstream. The article is from GIMP's news page and links to merge request !2909 and a developer guide.
- 13 UI tests cover startup, the Welcome dialog, File > New, File > Export As to PNG, Swap Colors, color entry, layer add/delete, Undo/Redo, Zoom In, toolbox tool selection, Preferences saving, and Image > Flatten Image.
- Each test starts a real GIMP inside a small hidden desktop, so they run on CI servers without a screen.
- Elements are located through the accessibility information used by screen readers, not by pixel matching, which the authors say also improves accessibility.
- The tests use dogtail, a Python UI testing tool; the headless capability needed for GIMP was added to dogtail upstream.
- Tests run only on Linux (X11 and Wayland), because dogtail does not support Windows or macOS.
- Harsh Verma wrote the tests and dogtail feature; Jehan and Michal Odehnal reviewed them. Contributors are invited to add tests for the parts they use most.
Discussion The thread is split between the modest scale of the test suite and a larger debate about AI-written tests. Several commenters question why a project announces only 13 tests, and one points out that GIMP's merge request template bans AI use, which prompts jokes and comparisons to Microsoft. Others argue that the hard part is building a deterministic harness rather than writing tests, and that AI-generated tests tend to cement broken behavior or cover irrelevant paths. A few commenters clarify that these are UI tests, not unit tests, and praise the harness work. Side threads touch on GIMP's dated UI, the GTK naming confusion, and whether GIMP still matters compared with Krita. The mood is skeptical and mixed, with more pragmatic than hostile tone.
- Small suite is healthy; the harness is the hard part (many): Commenters say building a deterministic setup that avoids focus races, DPI differences and async redraw flakiness matters more than test count. They suggest adding one regression test per fixed bug instead of many up front.
- AI should be used to write these tests (some): Several argue that models could cover every control quickly and that GIMP's no-AI policy explains the small count. They say writing tests is not the hard part of the job.
- AI-written tests are often low value or wrong (some): Users report models conform tests to broken code, and generated suites can test irrelevant behavior and inflate counts without improving coverage. Careful design and review are needed.
- Skepticism about GIMP's relevance and design (a few): Some question whether GIMP still has a reason to exist and note its UI looks outdated, though one commenter also praised the testing effort.
- Writing good tests requires careful thought, not prompting (a few): One commenter says designing orthogonal, invariant-checking tests is mentally demanding and not something to delegate, preferring to read manuals over prompting agents.
#GIMP #GUItesting #dogtail #accessibility #AItesting #opensource