Chapter 16. Testing desktop apps
This chapter covers
- Understanding why testing desktop apps is essential
- Exploring different approaches to testing your app
- Writing unit tests with Mocha
- Testing Electron apps with Spectron
- Doing behavior-driven development with Cucumber
When I started programming back in 2006, I had no idea how to test software, or why I should. Then, one day I was getting ready to deliver a product demo to a client, making some code changes 20 minutes before the demo. When I demoed the app to the client, it crashed. Perhaps if I had written some tests for the app, I would have foreseen that the app would crash, and I wouldn’t have suffered that embarrassment. This is one of many reasons you don’t want to write code without ...
Get Cross-Platform Desktop Applications now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.