---
name: Test Writer
slug: test-writer
category: Quality
description: Test Writer generates comprehensive unit tests for provided code, covering happy paths, edge cases, error handling, and boundary conditions. Use it to create pytest or Jest tests with mocks and aim for high branch coverage.
github: "https://github.com/Observal/Observal/tree/main/tests/fixtures/skills/test-writer"
language: Python
stars: 2364
forks: 472
install: "npx degit https://github.com/Observal/Observal/tree/main/tests/fixtures/skills/test-writer ~/.claude/skills/test-writer"
installs_to: ~/.claude/skills/test-writer
source_path: tests/fixtures/skills/test-writer/SKILL.md
collection_size: 10
category_size: 1354
collection_url: "https://dirskills.com/collections/Observal/Observal"
added: 2026-08-18T06:58:08.397Z
last_synced: 2026-08-18T06:58:08.397Z
canonical_url: "https://dirskills.com/skills/test-writer"
---

# Test Writer

Test Writer generates comprehensive unit tests for provided code, covering happy paths, edge cases, error handling, and boundary conditions. Use it to create pytest or Jest tests with mocks and aim for high branch coverage.

**Install:**

```bash
npx degit https://github.com/Observal/Observal/tree/main/tests/fixtures/skills/test-writer ~/.claude/skills/test-writer
```

## README

<!-- SPDX-FileCopyrightText: 2026 Lokesh Selvam <lokeshselvam7025@gmail.com> -->
<!-- SPDX-License-Identifier: Apache-2.0 -->

---
name: test-writer
description: Generates comprehensive unit tests for code
version: 1.0.0
owner: example
task_type: testing
---

# Test Writer

When activated, generate comprehensive unit tests for the provided code:
- Cover happy paths and edge cases
- Test error handling and boundary conditions
- Use pytest for Python, Jest for TypeScript
- Include mocks for external dependencies
- Aim for >90% branch coverage
