一键导入
test-framework-detector
Automatically detect test frameworks (Jest, pytest, RSpec, xUnit) in projects by analyzing configuration files and dependencies
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Automatically detect test frameworks (Jest, pytest, RSpec, xUnit) in projects by analyzing configuration files and dependencies
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Multi-signal framework detection with confidence scoring for 6 major frameworks
Node.js/TypeScript backend framework with dependency injection and modular architecture
Execute and generate ExUnit tests for Elixir projects with setup callbacks, describe blocks, and async testing support
Execute and generate pytest tests for Python projects with fixtures, parametrization, and mocking support
Execute and generate RSpec tests for Ruby projects with let bindings, before hooks, and mocking support
Execute and generate xUnit tests for C#/.NET projects with FluentAssertions and Moq support
| name | Test Framework Detector |
| description | Automatically detect test frameworks (Jest, pytest, RSpec, xUnit) in projects by analyzing configuration files and dependencies |
| version | 1.0.0 |
Automatically identify which test framework(s) a project uses by examining:
This skill is invoked by agents (like deep-debugger) when they need to determine which test framework to use for test generation or execution.
Run the detection script with the project path:
node detect-framework.js /path/to/project
The script returns a JSON object with detected frameworks:
{
"detected": true,
"frameworks": [
{
"name": "jest",
"confidence": 0.95,
"version": "29.7.0",
"configFiles": ["jest.config.js", "package.json"],
"testDirectory": "tests/",
"testPattern": "**/*.test.js"
}
],
"primary": "jest"
}
The skill uses pattern-based detection defined in framework-patterns.json. Each framework has:
Jest (JavaScript/TypeScript)
pytest (Python)
RSpec (Ruby)
xUnit (C#/.NET)
Confidence scores (0.0-1.0) are calculated based on:
Multiple frameworks may be detected (e.g., Jest + pytest in monorepos).
Detect framework in current directory:
node skills/test-detector/detect-framework.js .
Detect framework with verbose output:
DEBUG=true node skills/test-detector/detect-framework.js /path/to/project
Agents should invoke this skill before test generation:
1. Invoke test-detector skill with project path
2. Parse JSON output to get primary framework
3. Invoke appropriate test framework skill (jest-test, pytest-test, etc.)
4. Generate or execute tests using framework-specific patterns
If no framework is detected:
{
"detected": false,
"frameworks": [],
"primary": null,
"message": "No test framework detected. Please specify framework manually."
}