mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #591] run helloworld as a test will panic #432
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#432
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @axiaoxin on GitHub (Apr 23, 2021).
Original GitHub issue: https://github.com/rivo/tview/issues/591
define the helloworld demo as a function:
write a testing:
run test:
@rivo commented on GitHub (Apr 26, 2021):
Your call stack doesn't list any
tviewcode and this panic is not generated by it. I'm pretty sure what you're trying to do won't work anyway. Running atviewapplication captures the entire screen and it's interactive. It won't even exit unless you hit Ctrl-C. But unit tests are supposed to run unsupervised so this is at the very least not a good fit.If you insist on trying to get this to work, please try it with a small
tcellapplication first. If that works, it's likely we can make it work withtviewas well.