$npx skillfedfor your agent

test-harness

Test Harness builds complete pytest test files from source code, automatically structuring tests across happy paths, edge cases, and error states. It designs fixtures by scope, applies focused mocks to external dependencies, and handles async patterns—all grounded in reconnaissance of your code's complexity and existing test coverage.

Test Harness generates comprehensive pytest test suites with fixtures, mocks, and systematic coverage of happy paths, boundaries, and error conditions.

AI-generated summary based on this skill's SKILL.md

274 42 MITupdated by Mathews-Tom

Decision gist · record as of 2026-07-21

Test Harness generates comprehensive pytest test suites with fixtures, mocks, and systematic coverage of happy paths, boundaries, and error conditions. Test Harness builds complete pytest test files from source code, automatically structuring tests across happy paths, edge cases, and error states. It designs fixtures by scope, applies focused mocks to external dependencies, and handles async patterns—all grounded in reconnaissance of your code's complexity and existing test coverage.

manual: git clone https://github.com/Mathews-Tom/armory → cp -r armory/skills/test-harness ~/.claude/skills/test-harness
skills/test-harness/SKILL.md · version 7355d839

Use it when

  • Yes.
  • Test Harness creates tests covering happy paths, edge cases, and error conditions systematically.

Verify before relying

Read SKILL.md below before installing (8 files). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

Mathews-Tom/armory/test-harness · repository language: Python

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How does test-harness generate pytest tests for my function?

Test Harness builds complete pytest test files from source code, automatically structuring tests across happy paths, edge cases, and error states. It analyzes your function's complexity and existing coverage, then generates organized test suites with fixtures by scope, focused mocks for external dependencies, and proper async handling—all following pytest best practices.

Can test-harness create test suite with mocks for external APIs?

Yes. Test Harness designs mock strategies tailored to your dependencies, applying focused mocks to external APIs and services. It scaffolds fixtures at the appropriate scope (function, class, session) and configures conftest setup to handle dependency injection, so your tests remain isolated and deterministic.

What does test-harness do for edge cases and error conditions?

Test Harness creates tests covering happy paths, edge cases, and error conditions systematically. It generates parametrized test cases for boundary conditions, exception handling, and failure modes, ensuring your test suite captures the full range of your code's behavior without manual enumeration.

How does test-harness handle async code testing?

Test Harness recognizes async patterns in your code and designs appropriate mock and fixture strategies for async functions. It generates tests using pytest-asyncio conventions, properly awaiting coroutines and mocking async dependencies so your async test suite runs reliably.

Does test-harness scaffold pytest fixtures and conftest setup?

Yes. Test Harness scaffolds test infrastructure by designing fixtures at the right scope, generating conftest configurations, and setting up dependency injection patterns. This foundational work reduces boilerplate and ensures your test harness is maintainable and extensible from the start.

Can test-harness generate unit tests automatically for untested code?

Test Harness analyzes your source code to generate comprehensive unit tests automatically, building test files that cover happy paths, edge cases, and error states. It applies pytest best practices and fixture patterns, creating a complete test suite scaffold you can refine and extend.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

Test Harness

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.

Reference Files

File Contents Load When
references/pytest-patterns.md Fixture scopes, parametrize, marks, conftest layout, built-in

(truncated - see the full file via the links below)

File tree — 8 files
skills/test-harness/SKILL.md
skills/test-harness/evals/cases.yaml
skills/test-harness/evals/fixtures/sample_module.py
skills/test-harness/references/async-testing.md
skills/test-harness/references/coverage-targets.md
skills/test-harness/references/fixture-design.md
skills/test-harness/references/mock-strategies.md
skills/test-harness/references/pytest-patterns.md

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Generate comprehensive pytest test suites with fixtures and mocks”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

pytest
by xobotyi · xobotyi/cc-foundry

Master pytest's core patterns for writing maintainable tests: fixtures for setup and teardown, parametrize for test variations, and monkeypatch for mocking. Learn test structure, granularity, and scope management to build fast, isolated unit tests that serve as executable documentation.

MITupdated Jul 2026
★ 18repo stars
python-testing
by JosiahSiegel · JosiahSiegel/claude-plugin-marketplace

Learn to build robust test suites using pytest with fixtures at multiple scopes, parameterized test cases, and mocking strategies. This skill covers async testing patterns, FastAPI application testing, and property-based testing approaches to ensure comprehensive coverage and maintainable test code.

MITupdated Jun 2026
★ 49repo stars
Pytest Patterns
by hieutrtr · hieutrtr/ai1-skills

Pytest Patterns teaches structured testing for Python backends using pytest, httpx, and factory_boy. Learn to organize tests across unit and integration layers, build reusable fixtures with proper scoping, seed test data with factories, and test async FastAPI endpoints. Covers mocking, parametrization, and conftest hierarchy—but skips frontend and E2E testing.

no license declared → metadata onlyupdated Feb 2026
★ 8repo stars
Pytest
by eyadsibai · eyadsibai/ltk

Master pytest for Python testing with guidance on fixtures, parametrization, markers, and mocking strategies. Learn test organization patterns, coverage best practices, and common commands to streamline your testing workflow.

no license declared → metadata onlyupdated Jan 2026
★ 6repo stars
Setup Pytest Fixtures
by dawiddutoit · dawiddutoit/custom-claude

Setup Pytest Fixtures guides you through building reusable test fixtures with factory patterns, async support, and proper conftest organization. Learn to structure fixtures across centralized utilities and layer-specific configurations, then apply them across your test suite.

no license declared → metadata onlyupdated Jan 2026
★ 1repo stars
pytest-skill
by LambdaTest · LambdaTest/agent-skills

pytest-skill equips you with patterns for writing robust Python tests using pytest's core features: fixtures for setup and teardown, parametrize for data-driven testing, markers for test organization, and mocking for external dependencies. It covers conftest configuration, exception handling, and best practices for production environments.

MITupdated Jul 2026
★ 339repo stars

More skills Pytest Configuration (unlicensed) · python-testing (MIT) · python-testing-patterns (MIT) · pytest-config (MIT)

Tags
test-automationmock-injectioncoverage-analysisasync-testingfixture-managementparametrized-testsboundary-testingdependency-mockingtest-scaffoldingpytest-patterns