python-test

Scaffold pytest-based tests and BDD features for pyarnes projects.

Updated Apr 17, 2026
One-click install
npx skills add https://github.com/Cognitivemesh/pyarnes --skill python-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-test
Source: https://github.com/Cognitivemesh/pyarnes/tree/main/template/.claude/skills/python-test
Command: npx skills add https://github.com/Cognitivemesh/pyarnes --skill python-test

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffolds pytest-based tests for a pyarnes-based project that ships without a tests/ directory, enabling developers to quickly bootstrap unit tests and BDD features while preserving pyarnes conventions (async-first, Red → Green → Refactor, and loguru-based logging in tests).

Core Features & Use Cases

  • Bootstrap a tests tree on first use: tests/, tests/init.py, tests/conftest.py, and tests/unit/ with an initial test file
  • BDD scaffolding: create tests/features/ with feature files and steps
  • Unit-test skeleton: generate tests/unit/test_<target>.py that follows async-first patterns and dataclass fakes, mirroring pyarnes testing conventions
  • Enforce conventions: maintain pyarnes-style workflows (Arrange → Act → Assert, hypothesis usage where appropriate)

Quick Start

Run the test task to execute the new test scaffold and begin the red–green–refactor workflow.

Frequently Asked Questions about python-test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold pytest tests for a pyarnes project?

Scaffold pytest tests for a pyarnes project by generating a complete tests tree with conftest configuration, unit test skeletons, and BDD feature scaffolding to enable deterministic testing.

Can I add pytest-bdd features to an existing pyarnes project?

Add pytest-bdd features to a pyarnes project by creating tests/features directories with feature files and steps, fully integrating BDD scaffolding alongside standard pytest practices.

Does pytest test scaffolding work with async-first pyarnes conventions?

Pytest test scaffolding works with async-first pyarnes conventions by generating unit test skeletons that follow async-first patterns, dataclass fakes, and loguru-based logging in tests.

What's the best way to bootstrap a tests directory for pyarnes?

Bootstrap a tests directory for pyarnes by creating tests/__init__.py, tests/conftest.py, and tests/unit/ with an initial test file, enabling immediate red-green-refactor workflow execution.

When do I need BDD scaffolding for pytest testing?

BDD scaffolding for pytest testing is needed when a pyarnes project requires behavior-driven development integration, creating tests/features directories with structured feature files and steps.