Generate tests

From jmagly/aiwg · View interactive version

Generate tests is an AI agent skill from the GitHub repository jmagly/aiwg. Generate comprehensive test suite for $ARGUMENTS following project testing conventions and best practices.

How to use this skill

Skill file

Test Generator

Generate comprehensive test suite for $ARGUMENTS following project testing conventions and best practices.

Task

I'll analyze the target code and create complete test coverage including:

  1. Unit tests for individual functions and methods
  2. Integration tests for component interactions
  3. Edge case and error handling tests
  4. Mock implementations for external dependencies
  5. Test utilities and helpers as needed
  6. Performance and snapshot tests where appropriate

Process

I'll follow these steps:

  1. Analyze the target file/component structure
  2. Identify all testable functions, methods, and behaviors
  3. Examine existing test patterns in the project
  4. Create test files following project naming conventions
  5. Implement comprehensive test cases with proper setup/teardown
  6. Add necessary mocks and test utilities
  7. Verify test coverage and add missing test cases

Test Types

Unit Tests

Integration Tests

Framework-Specific Tests

Testing Best Practices

Test Structure

Mock Strategy

Coverage Goals

I'll adapt to your project's testing framework (Jest, Vitest, Cypress, etc.) and follow established patterns.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.