jeudi 4 juin 2020

Electron and Spectron: Testing 2 electron apps with same spectron scripts

I am starting to use Spectron to test some electron apps. The problem is I have multiple electron app all that have similar smoke test scenarios. I want to write one Spectron app that covers test for all the electron app.

I this possible? - for testing one app I have it in the same project as the electron app.

{

  "name": "testingelctron",

  "version": "1.0.0",

  "description": "",

  "main": "index.js",

  "scripts": {

    "start": "electron .",

    "test": "mocha",

    "debug-test": "mocha --inspect-brk test/smoke.js"

  },

Aucun commentaire:

Enregistrer un commentaire