Chapter 13. Testing applications with Spectron

This chapter covers

  • Using Spectron to test Electron applications
  • Understanding the relationship among Spectron, WebdriverIO, and Selenium WebDriver
  • Controlling Electron APIs within integration tests

At this point in the book, we’ve built a number of Electron applications. Testing these applications to make sure that they work as expected has been something of a manual process. Make a change, start the application, and click around to ensure that everything works. This is fine for small applications, but this method can become tedious in larger applications. What if a change in the code in one part of the application breaks some functionality elsewhere?

In these situations, it’s helpful to automate ...

Get Electron in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.