بنقرة واحدة
generate-tests
Generate comprehensive tests for specified code
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Generate comprehensive tests for specified code
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Clean up stale git worktrees with merged branch detection and disk usage report
Safely remove a git worktree with branch cleanup and safety checks
Create isolated git worktrees for feature development without switching branches
Check status of background verification tasks running in a git worktree
Perform a comprehensive code review of a pull request
Display native sandbox status, configuration, and recent violations
| name | generate-tests |
| description | Generate comprehensive tests for specified code |
| argument-hint | <file_or_module> [--framework jest|vitest|pytest] |
| effort | medium |
| when_to_use | Use when adding test coverage for a function, module, or feature. |
| disable-model-invocation | true |
Generate comprehensive tests for specified code.
Check for:
jest.config.js → Jestvitest.config.ts → Vitestpytest.ini → pytestmocha in package.json → MochaFollow the detected framework conventions.
Normal expected behavior with valid input.
describe('[ComponentName]', () => {
describe('[methodName]', () => {
// Happy path
it('should [expected behavior] when [condition]', () => {
// Arrange
// Act
// Assert
});
// Edge cases
it('should handle empty input', () => {});
it('should handle null values', () => {});
// Error cases
it('should throw when [invalid condition]', () => {});
});
});
/generate-tests src/utils/calculator.ts
/generate-tests src/services/
$ARGUMENTS