Skip to content

Improve visual test runner: consolidate setup, add constants, remove dead code - #46217

Merged
rtfeldman merged 5 commits into
mainfrom
remove-visual-test-println
Jan 7, 2026
Merged

Improve visual test runner: consolidate setup, add constants, remove dead code#46217
rtfeldman merged 5 commits into
mainfrom
remove-visual-test-println

Conversation

@rtfeldman

@rtfeldman rtfeldman commented Jan 7, 2026

Copy link
Copy Markdown
Contributor

Just some code cleanup to improve the tests - make them better exemplars for future use.

Release Notes:

  • N/A

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Jan 7, 2026
…dead code

- Add PIXEL_TOLERANCE constant (extracted from pixels_are_similar)
- Add workspace_window_size() and agent_panel_window_size() helper functions
- Create TestWorkspace struct to encapsulate workspace creation
- Create setup_project_panel() and open_file() helper functions
- Replace counter-based test result tracking with simpler any_failed boolean
- Remove unused let _ = update_baseline and let _ = (passed, updated) lines
- Extract test file content into constants (MAIN_RS_CONTENT, etc.)
- Standardize timer durations for more consistency

Note: FakeFs could not be used because it requires TestDispatcher which
is not available in Application::new().run() context.
@rtfeldman rtfeldman changed the title Remove println from visual test runner + improvement plan Improve visual test runner: consolidate setup, add constants, remove dead code Jan 7, 2026
@rtfeldman
rtfeldman marked this pull request as ready for review January 7, 2026 03:57
@rtfeldman
rtfeldman merged commit f4aad4b into main Jan 7, 2026
23 checks passed
@rtfeldman
rtfeldman deleted the remove-visual-test-println branch January 7, 2026 03:57
@rtfeldman rtfeldman added the area:ai Related to Agent Panel, Edit Prediction, Copilot, or other AI features label Jan 9, 2026
jonx pushed a commit to jonx/zed-aros that referenced this pull request Jul 17, 2026
…dead code (zed-industries#46217)

Just some code cleanup to improve the tests - make them better exemplars
for future use.

Release Notes:

- N/A
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
…dead code (zed-industries#46217)

Just some code cleanup to improve the tests - make them better exemplars
for future use.

Release Notes:

- N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ai Related to Agent Panel, Edit Prediction, Copilot, or other AI features cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant