[GH-ISSUE #894] What is the best way to test a tview application? #651

Closed
opened 2026-03-04 01:06:46 +03:00 by kerem · 3 comments
Owner

Originally created by @paololazzari on GitHub (Oct 2, 2023).
Original GitHub issue: https://github.com/rivo/tview/issues/894

Is there any recommended way of doing this? Since App.Run() obviously blocks the screen

Originally created by @paololazzari on GitHub (Oct 2, 2023). Original GitHub issue: https://github.com/rivo/tview/issues/894 Is there any recommended way of doing this? Since `App.Run()` obviously blocks the screen
kerem closed this issue 2026-03-04 01:06:46 +03:00
Author
Owner

@paololazzari commented on GitHub (Oct 3, 2023):

Thank you @digitallyserviced , that helps.

If we take as an example what we discussed here, how could one inject text in the input field and then later verify that the text view contained the same text?

<!-- gh-comment-id:1744734957 --> @paololazzari commented on GitHub (Oct 3, 2023): Thank you @digitallyserviced , that helps. If we take as an example what we discussed [here](https://github.com/rivo/tview/issues/888), how could one inject text in the input field and then later verify that the text view contained the same text?
Author
Owner

@paololazzari commented on GitHub (Oct 4, 2023):

Thank you very much @digitallyserviced , so it seems like all of the logic has to take place in the source code of the app itself

<!-- gh-comment-id:1747158831 --> @paololazzari commented on GitHub (Oct 4, 2023): Thank you very much @digitallyserviced , so it seems like all of the logic has to take place in the source code of the app itself
Author
Owner

@paololazzari commented on GitHub (Oct 5, 2023):

Thanks @digitallyserviced

<!-- gh-comment-id:1748177163 --> @paololazzari commented on GitHub (Oct 5, 2023): Thanks @digitallyserviced
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#651
No description provided.