code-test-detector
Analyzes code snippets or GitHub repositories to detect testing frameworks, test functions, and coverage presence without executing code.
Instructions
Detects testing frameworks and test coverage presence in a code snippet or GitHub repository. For code snippets: identifies test functions, assertions, mocks, fixtures, and frameworks (Jest, pytest, go test, JUnit, RSpec, etc.). For GitHub repos: counts test files vs source files, surfaces config files, and gives a coverage verdict. No code execution — pure static analysis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Code snippet to analyze for test patterns. | |
| filename | No | Optional filename for the code snippet (e.g. 'utils.test.js') — helps confirm test file naming conventions. | |
| github_repo | No | GitHub repository in 'owner/repo' format (e.g. 'facebook/react'). Analyzes the full repo file tree for test coverage. |