Add tests for recently changed files or specified code
Generate comprehensive tests for a specific function or recently modified files. Use when you need to add test coverage to untested code or verify new functionality works correctly.
/plugin marketplace add CloudAI-X/claude-workflow/plugin install project-starter@claude-workflowfile path or function namegit diff --name-only HEAD~3 2>/dev/null | grep -E '\.(ts|tsx|js|jsx|py|go|rs)$' | head -10 || echo "No recent changes"cat package.json 2>/dev/null | grep -E '"(jest|vitest|mocha)"' | head -1 || ls pytest.ini pyproject.toml 2>/dev/null | head -1 || echo "Unknown test framework"find . -name "*test*" -o -name "*spec*" 2>/dev/null | grep -E '\.(ts|tsx|js|jsx|py|go)$' | head -10 || echo "No test files found"ls -la tests/ test/ __tests__/ spec/ 2>/dev/null | head -20 || echo "No standard test directory"Add tests for the specified target:
Target: $ARGUMENTS
If no target specified, focus on recently modified files that lack test coverage.