Skip to content
Scaffolding
Command

/test

Generate comprehensive tests for a file or function

BOOST
From plugin
claude-code-essentials-vs-code
648 skills3 agents8 commands
Install
$ npx -y skills add AgriciDaniel/claude-code-essentials-vs-code --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/test

Context preview

What this command does when you run it.

Generate comprehensive tests for a file or function

Command definition

test.md
description: Generate comprehensive tests for a file or function

Generate comprehensive tests for: $ARGUMENTS

Requirements: 1. **Unit Tests**: Test each function in isolation 2. **Edge Cases**: Empty inputs, null values, boundary conditions 3. **Error Scenarios**: Invalid inputs, network failures, timeouts 4. **Integration Tests**: If the code interacts with other modules

Follow these patterns:

  • Use the existing test framework in the project
  • Match the project's test file naming convention
  • Use descriptive test names: "should [expected behavior] when [condition]"
  • Group related tests with describe blocks
  • Use proper mocking for external dependencies
  • Aim for high coverage but prioritize meaningful tests

After generating: 1. Run the tests to verify they pass 2. Check coverage if available 3. Suggest any additional test cases

Ships withclaude-code-essentials-vs-code

A small, opt-in setup helper for Claude Code and selected VS Code extensions. The January 2026 tutorial's “26 extensions in one command” is historical: this refresh installs nothing by default. Review your choices before applying them.

Get the whole plugin