Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uitest: Add system for unit testing widgets #534

Merged
merged 2 commits into from
Dec 27, 2024
Merged

Conversation

abhinav
Copy link
Owner

@abhinav abhinav commented Dec 27, 2024

Adds a testscript-based system for testing terminal widgets.
This is a generalized, in-memory, Windows-friendly version of with-term
intended for use in unit tests instead of end-to-end tests.
It uses testscript instead of a the custom commands format.

With this in place, we're able to unit test a bunch of the terminal
interactions that were previously untested,
or became untested following RobotView in #480.

@abhinav
Copy link
Owner Author

abhinav commented Dec 27, 2024

This change is part of the following stack:

Change managed by git-spice.

@abhinav abhinav added the skip changelog PRs that don't need a changelog. label Dec 27, 2024
@abhinav abhinav force-pushed the uitest-reuse-scripts branch 4 times, most recently from 6147f77 to a8d9ca4 Compare December 27, 2024 15:39
Adds a testscript-based system for testing terminal widgets.
This is a generalized, in-memory, Windows-friendly version of with-term
intended for use in unit tests instead of end-to-end tests.
It uses testscript instead of a the custom commands format.

With this in place, we're able to unit test a bunch of the terminal
interactions that were previously untested,
or became untested following RobotView in #480.
@abhinav abhinav force-pushed the uitest-reuse-scripts branch from a8d9ca4 to 61cf35b Compare December 27, 2024 17:43
@abhinav abhinav marked this pull request as ready for review December 27, 2024 17:43
@abhinav abhinav enabled auto-merge (squash) December 27, 2024 17:46
@abhinav abhinav disabled auto-merge December 27, 2024 18:11
@abhinav abhinav merged commit b33a07a into main Dec 27, 2024
11 checks passed
@abhinav abhinav deleted the uitest-reuse-scripts branch December 27, 2024 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip changelog PRs that don't need a changelog.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant