Re:Air – Live reload when developing with Go
by rakoo on Sunday August 01, 2021 @04:32AM
(#28024757)
I lnow you're saying that when it comes to GUIs you have to do it manually, but as someone working on the back-end this begs the question: is there no unit tests framework or anything for GUIs ?
[ Parent
| on HN ]
Re:Air – Live reload when developing with Go
by pjmlp on Sunday August 01, 2021 @04:35AM
(#28024771)
Depends if we are talking about native or web based GUIs, and then the best you can get is automating the user clicking buttons and if the UI changes in some limited ways.
There is no way to properly test UI/UX experiences, even if the test is correct for a button being displayed with the right label, doesn't mean it looks correctly from user experience point of view, yet the test is green.
Taking repeated screenshots of a GUI and making sure they don't change across commits is a useful thing to have in CI a lot of the time to make sure if you did change something somebody's eyeballed it for correctness.
However I'm not at all claiming that removes the 'eyeballed it' step, just that it makes it harder to miss said step :)
Re:Air – Live reload when developing with Go
by philipswood on Sunday August 01, 2021 @07:50AM
(#28025617)
I'm expecting someone to train a ML model soon to interpret and score GUIs.
"This page is confusing" and "This page no clear call to action" And "This page is ugly" And "This button doesn't look like a button."
For native Android apps there is a framework to do GUI tests. The test code stayed in your release as a NOOP last time i looked at it, may be fixed now.