ln-743-test-infrastructure

Solid

Sets up test infrastructure with Vitest, xUnit, and pytest. Use when adding testing frameworks and sample tests to a project.

AI & Automation 478 stars 67 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 92/100

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

Skill Content

> **Paths:** File paths (`shared/`, `references/`, `../ln-*`) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root. If `shared/` is missing, fetch files via WebFetch from `https://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/skills/{path}`. # ln-743-test-infrastructure **Type:** L3 Worker **Category:** 7XX Project Bootstrap Sets up testing frameworks, coverage tools, and sample tests for projects. --- ## Purpose & Scope **Does:** - Detects project stack to choose appropriate test framework - Creates test configuration files - Sets up coverage reporting with thresholds - Creates sample tests demonstrating patterns - Verifies test suite runs successfully **Does NOT:** - Configure linters (ln-741 does this) - Set up pre-commit hooks (ln-742 does this) - Write actual application tests (developers do this) --- ## Supported Stacks | Technology | Test Framework | Coverage Tool | Config File | |------------|---------------|---------------|-------------| | TypeScript/React | Vitest | v8/Istanbul | `vitest.config.ts` | | .NET | xUnit | Coverlet | `*.Tests.csproj` | | Python | pytest | pytest-cov | `pytest.ini` or `pyproject.toml` | --- ## Phase 1: Check Existing Tests Before creating test infrastructure, check what exists. **Files to Check:** | Stack | Test Indicators | |-------|-----------------| | TypeScript | `vitest.config.*`, `jest.config.*`, `*.test.ts`, `*.spec.ts` | | .NET | ...

Details

Author
levnikolaevich
Repository
levnikolaevich/claude-code-skills
Created
7 months ago
Last Updated
1 weeks ago
Language
JavaScript
License
MIT

Integrates with

Related Skills