Improved automated testing #858
williamhammond
started this conversation in
Ideas
Replies: 1 comment
-
The current method would be decoupling "pure" data from "GUI state". This was also recently covered on Zulip. From Hecrj:
From me:
From Hecrj about the use case for testing:
I do agree though, long term it would be fantastic to have an iced feature that would launch the application in testing mode. Something like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone.,I asked in Zuplip and someone mentioned it doesn't exist and would be useful so I figured I'd open a ticket.
I think it'd be nice if there were some sort of way to setup tests where an
Application
can be fed input and the state of theApplication
could be introspected and compared against an expected state.I think the primary issue with implementing this is the fact
Application::run
takes control of the current thread. I'm not sure what communicating to the application from a different thread would look like but if there is a clean work around what about an interface that might work like changing the result ofApplication::run
fromResult<(), Error>
toResult<Application, Error>
. Assuming the startup went well, we'll have access toApplication
and from there we could useupdate
and make assertions based offState
?This might be a little naive, since I'm beginner and my app is currently only a single widget 😅 but it'd be a big benefit for automated cross-platform testing.
Beta Was this translation helpful? Give feedback.
All reactions