Test Generator

🌐Community
by oimiragieo · vlatest · Repository

Generates diverse test questions and answer keys based on provided text or topic for assessment creation.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add oimiragieo-test-generator npx -- -y @trustedskills/oimiragieo-test-generator
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "oimiragieo-test-generator": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/oimiragieo-test-generator"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill generates test code based on provided code or a topic for assessment creation. It guides an AI agent through a five-step process: identifying the test type (Unit, Integration, E2E, or API), analyzing target code, reviewing existing tests and patterns, generating test code following project conventions, and finally performing coverage analysis to ensure comprehensive testing. The skill focuses on creating runnable tests using appropriate frameworks and covering edge cases and error scenarios.

When to use it

  • When you need to quickly generate unit tests for a component or function.
  • To create integration tests that verify the interaction between services or APIs.
  • For generating end-to-end (E2E) tests for user flows.
  • When needing assistance in creating API endpoint tests, ensuring proper functionality and error handling.

Key capabilities

  • Test Type Identification: Determines appropriate test type (Unit, Integration, E2E, API).
  • Code Analysis: Analyzes code to identify test cases, dependencies, and edge cases.
  • Pattern Review: Reviews existing tests to understand testing patterns and framework usage.
  • Test Code Generation: Creates test code following project conventions and including comprehensive coverage.
  • Coverage Analysis: Checks for complete requirement coverage, validates runnable syntax, calculates line/branch coverage (if possible), and suggests additional tests.

Example prompts

  • "Generate a unit test for this function: [paste function code here]"
  • "Create an integration test to verify the interaction between Service A and API B."
  • "Write an E2E test for the user login flow."
  • "Analyze existing tests and generate new ones following similar patterns."

Tips & gotchas

  • The skill operates within an agent context and doesn't function as a standalone utility.
  • Providing clear code snippets or descriptions of the functionality to be tested is crucial for effective test generation.
  • Review generated tests carefully, especially regarding syntax validity and framework configuration, before execution.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
oimiragieo
Installs
39

🌐 Community

Passed automated security scans.