·test-harness
</>

test-harness

Generates comprehensive pytest test suites: happy path, edge cases, error conditions, fixture scaffolding, mock strategy, and async patterns. Analyzes function signatures, dependency chains, and complexity hotspots to produce runnable, parametrized test files. Triggers on: "generate tests", "write tests for", "test this function", "test this class", "create test suite", "what tests should I write", "pytest for", "unit tests for", "mock strategy for", "how to test", "test coverage for", "write a test file". Use this skill when given a Python function, class, or module and asked to produce tests.

9Installs·0Trend·@mathews-tom

Installation

$npx skills add https://github.com/mathews-tom/praxis-skills --skill test-harness

How to Install test-harness

Quickly install test-harness AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/mathews-tom/praxis-skills --skill test-harness
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: mathews-tom/praxis-skills.

SKILL.md

View raw

Systematic test suite generation that transforms source code into comprehensive, runnable pytest files. Analyzes function signatures, dependency graphs, and complexity hotspots to produce tests covering happy paths, boundary conditions, error states, and async flows — with properly scoped fixtures and focused mocks.

| references/pytest-patterns.md | Fixture scopes, parametrize, marks, conftest layout, built-in fixtures | Always | | references/mock-strategies.md | Mock decision tree, patch boundaries, assertions, anti-patterns | Target has external dependencies |

| references/async-testing.md | pytest-asyncio modes, event loop fixtures, async mocking | Target contains async code | | references/fixture-design.md | Factory fixtures, yield teardown, scope selection, composition | Test requires non-trivial setup |

Generates comprehensive pytest test suites: happy path, edge cases, error conditions, fixture scaffolding, mock strategy, and async patterns. Analyzes function signatures, dependency chains, and complexity hotspots to produce runnable, parametrized test files. Triggers on: "generate tests", "write tests for", "test this function", "test this class", "create test suite", "what tests should I write", "pytest for", "unit tests for", "mock strategy for", "how to test", "test coverage for", "write a test file". Use this skill when given a Python function, class, or module and asked to produce tests. Source: mathews-tom/praxis-skills.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/mathews-tom/praxis-skills --skill test-harness
Category
</>Dev Tools
Verified
First Seen
2026-03-10
Updated
2026-03-10

Browse more skills from mathews-tom/praxis-skills

Quick answers

What is test-harness?

Generates comprehensive pytest test suites: happy path, edge cases, error conditions, fixture scaffolding, mock strategy, and async patterns. Analyzes function signatures, dependency chains, and complexity hotspots to produce runnable, parametrized test files. Triggers on: "generate tests", "write tests for", "test this function", "test this class", "create test suite", "what tests should I write", "pytest for", "unit tests for", "mock strategy for", "how to test", "test coverage for", "write a test file". Use this skill when given a Python function, class, or module and asked to produce tests. Source: mathews-tom/praxis-skills.

How do I install test-harness?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/mathews-tom/praxis-skills --skill test-harness Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/mathews-tom/praxis-skills