I have an Electron application that needs to save some data when it’s closed by the user (e.g. just after the user clicked on the “Close” button). For this example, we want to store the resolution (width and height of the application in pixels) to a config file. The next time, the application starts, these values should be read and the application resized accordingly.
Jenkins is one of the well-known open source automation servers out there. It allows you to build, deploy and automat your project. It is extensible, meaning you can write your own plugin for your special use case. However, the lack of documentation and working examples makes it suprisingly difficult to build your own plugin. I went through this tidious process myself. This step-by-step guide hopefully helps you in building your own Jenkins plugin.
In this article, you will learn how to test your Electron-based desktop application with Mocha, Chai, and Spectron. You will learn how to set up the test environment and run automated integration or E2E tests with Spectron, Mocha, and Chai. Furthermore, a short introduction to CSS selectors is given.