spectron-test-setup
Set up Spectron (deprecated) tests for legacy Electron application testing
npx skills add a5c-ai/babysitter --skill spectron-test-setup --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# spectron-test-setup Set up Spectron tests for legacy Electron applications. Note: Spectron is deprecated; use Playwright for new projects. ## Capabilities - Configure Spectron test environment - Generate test structure - Set up WebDriverIO integration - Handle application lifecycle - Create page objects ## Input Schema ```json { "type": "object", "properties": { "projectPath": { "type": "string" }, "electronPath": { "type": "string" } }, "required": ["projectPath"] } ``` ## Example Test ```javascript const 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); }); }); }); ``` ## Migration Note Consider migrating to `playwright-electron-config` for modern Electron testing. ## Related Skills - `playwright-electron-config` - `electron-mock-factory`
- Capabilities
- Input Schema
- Example Test
- Migration Note
- Related Skills
What does the spectron-test-setup skill do?
Set up Spectron (deprecated) tests for legacy Electron application testing
How do I install it?
Run `npx skills add a5c-ai/babysitter --skill spectron-test-setup --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From a5c-ai/babysitter, a repository with 1,642 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
