mcpField

Test Generator

github.com/eddiebe147Testing & quality52 installs
Repository

About Test Generator

Test Generator is a coding skill that creates unit and end-to-end tests from code and user flows. It covers expected behavior, edge cases, failures, mocks, selectors, assertions, and test data.

Key features

  1. 01Unit test generation
  2. 02Edge and error case coverage
  3. 03Dependency mocking
  4. 04E2E scenario creation
  5. 05Selectors and assertions

Use cases

  1. 01Adding tests for a function
  2. 02Testing key user flows end to end
  3. 03Covering boundary and failure conditions

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/eddiebe147/claude-settings --skill test-generator

After installing, type/test-generatorin Claude Code to confirm it loaded.

Details

From the project README

Test Generator

Generate comprehensive test suites that catch bugs before production. From unit tests to E2E scenarios, create tests that give you confidence to ship.

Core Workflows

Workflow 1: Unit Test Generation
  1. Analyze Code - Understand function inputs/outputs
  2. Happy Path - Test expected behavior
  3. Edge Cases - Test boundary conditions
  4. Error Cases - Test failure scenarios
  5. Mocking - Create mocks for dependencies
Workflow 2: E2E Test Generation
  1. User Flows - Identify critical paths
  2. Test Scenarios - Write step-by-step tests
  3. Selectors - Define robust element selectors
  4. Assertions - Verify expected outcomes
  5. Data Setup - Handle test data

Quick Reference

ActionCommand
Generate unit tests"Generate tests for [function]"
E2E tests"Create E2E tests for [flow]"
Coverage report"Analyze test coverage"

Comments

Markdown supported