spectron-test-setup
Set up Spectron (deprecated) tests for legacy Electron application testing
Best use case
spectron-test-setup is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Set up Spectron (deprecated) tests for legacy Electron application testing
Teams using spectron-test-setup should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/spectron-test-setup/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How spectron-test-setup Compares
| Feature / Agent | spectron-test-setup | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Set up Spectron (deprecated) tests for legacy Electron application testing
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 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`Related Skills
vitest
Vitest configuration, mocking, coverage, snapshot testing, and performance.
react-testing-library
React Testing Library patterns, queries, user events, and accessibility testing.
load-test-generator
Generate load test scripts for k6, Locust, and Gatling from OpenAPI specs
cloud-security-testing
Multi-cloud security assessment and penetration testing capabilities. Execute Prowler/ScoutSuite assessments, analyze IAM policies, identify cloud misconfigurations, test permissions, and enumerate cloud resources across AWS/GCP/Azure.
contract-test-framework
Consumer-driven contract testing for SDK-API compatibility. Generate Pact consumer tests, verify provider contracts, configure Pact broker, and implement can-i-deploy checks.
compatibility-test-matrix
Multi-version, multi-platform SDK compatibility testing
test-data-generation
Synthetic test data generation and management using Faker.js and similar tools. Generate realistic test data, create data factories, implement database seeding, and manage test data anonymization.
Stryker Mutation Testing
Stryker mutation testing for assessing test suite quality and effectiveness
pytest Testing
Expert pytest framework for Python unit, integration, and functional testing
Playwright E2E Testing
Deep integration with Playwright for browser automation and end-to-end testing
Percy Visual Testing
Percy visual testing platform integration for visual regression detection
pact-contract-testing
Consumer-driven contract testing with Pact framework. Generate consumer contracts, configure Pact Broker publishing, execute provider verification, detect breaking changes, and integrate with CI/CD pipelines.