Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Set up Spectron (deprecated) tests for legacy Electron application testing
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | -32% | 0% |
| case-18 | ✗→✓ | ▲ Improved | -62% | 0% |
| case-02 | ✓→✗ | ▼ Worse | -30% | 0% |
| case-01 | ✓→✓ | = Same ✓ | -17% | 0% |
| case-03 | ✓→✓ | = Same ✓ | -16% | 0% |
Set up Spectron tests for legacy Electron applications. Note: Spectron is deprecated; use Playwright for new projects.
json{ "type": "object", "properties": { "projectPath": { "type": "string" }, "electronPath": { "type": "string" } }, "required": ["projectPath"] }
javascriptconst Application = require('spectron').Application; const path = require('path'); describe('Application launch', function () { beforeEach(function () { this.app = new Application({ path: require('electron'), args: [path.join(__dirname, '..')] }); return this.app.start(); }); afterEach(function () { if (this.app && this.app.isRunning()) { return this.app.stop(); } }); it('shows initial window', function () { return this.app.client.getWindowCount().then(count => { expect(count).toBe(1); }); }); });
Consider migrating to playwright-electron-config for modern Electron testing.
playwright-electron-configelectron-mock-factoryOther measured skills in the registry, with their headline benchmark lift.