Test Generator
ListedGenerates diverse test questions and answer keys based on provided text or topic for assessment creation.
Install on your platform
Showing Claude Code. One command installs this skill into any of the agents below.
- 1
Run this in your project
terminal$ npx skills add oimiragieo/agent-studio --skill test-generator -a claude-code Uses the open-source
skillsCLI and needs Node.js. Add-gto install it for your user instead of this project.
What we know about this skill
Publisher
oimiragieo
Taken from the source listing. We haven't verified who controls this account.
Install target
Live repository
Not pinned. Installing fetches whatever the repository holds at the time you run the command.
Automated safety checks
We could not read this skill's source, so none of the checks below were run.
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.