Open Diapolo10 opened 2 years ago
I came up with some templates for tests but couldn't figure out how to actually test anything. Is this even how the tests should be done?
In the same file (chatroom.rs) as chatroom component:
And yeah I haven't found a way to test the GUI.
I think that looks perfectly fine, but I can't really focus on this until I get back from the rehearsal.
GUI testing doesn't really matter, it cannot be unit tested meaningfully. It would require more complex testing, and I don't think we should focus on that.
The desktop client needs its own unit tests. Fortunately, Rust makes this fairly easy. Unfortunately, someone still needs to make them.
We probably don't need to test GUI elements, just the "business logic" of the application, so don't get hung-up on that.