-
-
Notifications
You must be signed in to change notification settings - Fork 599
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
How to unit test and e2e test? #1060
Comments
Adding unit tests to You might want to create something like that for you application. I haven't given it much thought, though, so I don't know the pitfalls of this technique yet. |
Thanks for the response!
…On Sat, Mar 29, 2025 at 8:25 AM rivo ***@***.***> wrote:
Adding unit tests to tview has been on my todo list for almost as long as
the project exists. The idea is to create a special tcell.Screen object
whose content is then extracted and compared after the test has run.
You might want to create something like that for you application. I
haven't given it much thought, though, so I don't know the pitfalls of this
technique yet.
—
Reply to this email directly, view it on GitHub
<#1060 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB5VZ3AT35APKE5M2WCVU2T2W2UMVAVCNFSM6AAAAABTDV3GO6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONRTGUYDSMJZHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
[image: rivo]*rivo* left a comment (rivo/tview#1060)
<#1060 (comment)>
Adding unit tests to tview has been on my todo list for almost as long as
the project exists. The idea is to create a special tcell.Screen object
whose content is then extracted and compared after the test has run.
You might want to create something like that for you application. I
haven't given it much thought, though, so I don't know the pitfalls of this
technique yet.
—
Reply to this email directly, view it on GitHub
<#1060 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB5VZ3AT35APKE5M2WCVU2T2W2UMVAVCNFSM6AAAAABTDV3GO6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONRTGUYDSMJZHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How can I unit test my code? Is there some mocking that can be done with tview.NewApplication and tview.NewPages?
Also, how can I end-to-end test? I want to bring up my app, update some form fields and validate the updates on screen?
Thanks!
The text was updated successfully, but these errors were encountered: