generate-tests

Solid

Generate complete test coverage for any file, component, or module. Covers unit tests, integration tests, edge cases, error handling, and mocking — adapted to whatever testing framework the project uses.

AI & Automation 506 stars 12 forks Updated today NOASSERTION

Install

View on GitHub

Quality Score: 83/100

Stars 20%
90
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Generate Tests — Comprehensive Test Suite Generator Generate complete test coverage for any file, component, or module. Covers unit tests, integration tests, edge cases, error handling, and mocking — adapted to whatever testing framework the project uses. **Use when**: you want tests generated for a file or component, need to improve test coverage, want edge case coverage, need mocks for external dependencies, or want to bootstrap a test suite for untested code. --- ## When This Skill Is Activated Follow every step below. Do NOT generate tests without first analyzing the project's testing setup and the target code. --- ## Step 1: Detect the Testing Setup Before writing any tests, discover the project's testing conventions: 1. **Find the test framework** — Check `package.json` (dependencies/scripts), or config files: - `jest.config.*` / `jest` key in `package.json` → Jest - `vitest.config.*` → Vitest - `cypress.config.*` → Cypress - `playwright.config.*` → Playwright - `pytest.ini` / `pyproject.toml` [tool.pytest] → pytest - `go.mod` → Go testing - `Cargo.toml` → Rust (#[cfg(test)]) 2. **Find existing test files** — Search for `*.test.*`, `*.spec.*`, `test_*.py`, `*_test.go` to understand naming conventions and patterns already in use. 3. **Check for test utilities** — Look for shared helpers, factories, custom matchers, or mock setups the project already provides (e.g., `test/utils.ts`, `__mocks__/`, `conftest.py`). 4. **Check the test scrip...

Details

Author
coco-research
Repository
coco-research/coco
Created
5 months ago
Last Updated
today
Language
HTML
License
NOASSERTION

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category