testing

Guide unit, integration, and end-to-end testing for Python and TypeScript projects.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/edlovesjava/horse-sense --skill testing-edlovesjava
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/edlovesjava/horse-sense/tree/main/horse/skills/testing
Command: npx skills add https://github.com/edlovesjava/horse-sense --skill testing-edlovesjava

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Validate that the software behaves correctly, reliably, and securely at every level — from individual functions to full user journeys. A good test suite is a safety net that enables confident, frequent releases.

Core Features & Use Cases

  • Unit testing, integration testing, and end-to-end guidance aligned with the Test Pyramid, with Python and TypeScript examples.
  • Configuration-driven discovery that detects project types (Python: pyproject.toml, requirements.txt; TypeScript: package.json) and presets testRunner, srcDir, testDir, and coverage targets.
  • Comprehensive techniques for writing robust tests, including fixtures, test doubles, parameterized tests, security checks, and CI integration.

Quick Start

Run your unit tests locally with pytest for Python or vitest for TypeScript to quickly validate new changes.

Frequently Asked Questions about testing

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

FAQPage Schema
How do I organize unit, integration, and e2e testing across Python and TypeScript projects?

Multi-level testing organizes unit, integration, and end-to-end tests by detecting pyproject.toml or package.json, then presets testRunner, srcDir, and testDir to ensure reliable software delivery.

What's the best way to configure pytest and vitest coverage targets in a CI pipeline?

Configuration-driven discovery detects project types and presets coverage targets, guiding test execution and safety checks within CI pipelines to enforce a structured testing strategy for Python and TypeScript.

Does this testing guidance work with both Python and TypeScript test runners?

Yes, the testing guidance applies to both Python and TypeScript projects, detecting configuration files like requirements.txt and package.json to align with the Test Pyramid using pytest and vitest examples.

How do I use fixtures and test doubles for parameterized unit tests?

Robust tests use fixtures, test doubles, and parameterized tests to validate software behavior across individual functions, applying comprehensive techniques aligned with the Test Pyramid for confident, frequent releases.

When do I need end-to-end testing versus integration testing in my test suite?

End-to-end testing validates full user journeys while integration testing checks combined components, both guided by a multi-level testing strategy that acts as a safety net to enable confident software releases.