Setup Spectron and Testing Library to effectively test your Electron.js application

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • electron-spectron-example

    A example of using Spectron to test an Electron application

  • The example project used in this article was created using Electron Forge uses Electron 11, Spectron 12, and tests are run using Jest. I won't be covering every configuration step so if you want to know all the details, you can find the project at https://github.com/juhanakristian/electron-spectron-example.

  • spectron

    DEPRECATED: 🔎 Test Electron apps using ChromeDriver

  • Mismatching Spectron and Electron versions Check the versions from package.json and make sure they are compatible by checking Spectron Github

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • WebdriverIO

    Next-gen browser and mobile automation test framework for Node.js

  • Testing Library WebdriverIO is a library you can use to test web applications through WebdriverIO. It's part of the Testing Library family of libraries.

  • Electron

    :electron: Build cross-platform desktop apps with JavaScript, HTML, and CSS

  • In this article, we will setup Spectron and use Testing Library with WebdriverIO to test an Electron.js application.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts