MatrixAI / TypeScript-Demo-Electron

TypeScript Electron Demo Project using Nix

Home Page:https://matrix.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Integrate Testing System https://www.electronjs.org/spectron

CMCDragonkai opened this issue · comments

Spectron seems like a viable testing system. We should have a template for this.

Spectron has some native dependencies. Need to package this in nixpkgs first. Seems like the chromedriver is the main thing here.

Spectron relies on:

  "dependencies": {
    "@electron/remote": "^1.0.4",
    "dev-null": "^0.1.1",
    "electron-chromedriver": "^12.0.0",
    "got": "^11.8.0",
    "split": "^1.0.1",
    "webdriverio": "^6.9.1"
}

Out of all of that, it seems electron-chromedriver is the one with a native downloaded dependency. So we will need to prespecify it to prevent network access. Relevant issue: electron/chromedriver#78

@gideonairex what testing systems are you using in Polykey?

Vue testing is currently working. Haven't integrated spectron testing yet.

We can work with vue testing for now, spectron testing can come later.

For now we will stick with vue testing until we find a need to use spectron. Spectron requires packaging in Nixpkgs as well to be able to be used and so it will involve some extra work.