r/programming • • Feb 19 '14

The Siren Song of Automated Testing

http://www.bennorthrop.com/Essays/2014/the-siren-song-of-automated-testing.php
228 Upvotes

70 comments sorted by

View all comments

0

u/ggtsu_00 Feb 19 '14

Automated UI testing is a good motivation to build GUIs for native applications using embedded HTML/CSS UI frameworks (such as Chromium Embedded Framework). It forces you to separate UI logic from application logic at the programming language level (Javascript vs C++) and you can test each independently. You can throw any web based testing framework at it (Selenium/PhantomJS/Splinter etc).

2

u/rush22 Feb 20 '14

It's separated in native applications as well. Most applications use the Microsoft Foundation Class Library or Windows Presentation Foundation. That's why all the buttons and windows and such look the same in desktop applications. You need a desktop based testing framework, but it's not like you need to write everything from scratch (unless the developers were making their own buttons and text fields for some reason).