test-engineering

Guide writing and running unit, integration, and graph-api tests for the FitPal LangGraph agent.

Updated Feb 13, 2026
One-click install
npx skills add https://github.com/sandrusidoltst-a11y/fit_pal --skill test-engineering-sandrusidoltst-a11y
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-engineering
Source: https://github.com/sandrusidoltst-a11y/fit_pal/tree/main/.claude/skills/test-engineering
Command: npx skills add https://github.com/sandrusidoltst-a11y/fit_pal --skill test-engineering-sandrusidoltst-a11y

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance on writing, structuring, and executing tests for the FitPal LangGraph agent, ensuring code quality and reliability.

Core Features & Use Cases

  • Test Strategy: Understand the philosophy of testing in FitPal, focusing on logic over dependencies.
  • Test Tiers: Learn the distinctions between unit, integration, and graph-api tests.
  • Mocking Rules: Follow strict guidelines on what and when to mock dependencies like LLMs and databases.
  • Use Case: When a new feature is developed, use this Skill to understand the correct testing tier and apply the appropriate mocking strategies and validation commands to ensure robust test coverage.

Quick Start

Use the test-engineering skill to learn how to write a unit test for a new node.

Frequently Asked Questions about test-engineering

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

FAQPage Schema
How do I structure unit and integration tests for a LangGraph agent?

Mock LLM and database dependencies in LangGraph agent tests to isolate logic and ensure determinism. Follow strict mock boundary rules to determine exactly what and when to mock, preventing external API calls from breaking graph-api test reliability.

How do I run end-to-end tests for a LangGraph agent using langgraph-sdk?

Run LangGraph agent end-to-end tests using langgraph-sdk by applying graph-api testing patterns. These patterns validate the entire agent flow, ensuring integration DB testing patterns maintain data isolation and deterministic outcomes across the graph architecture.

What is the difference between unit, integration, and graph-api tests in pytest?

Unit tests validate isolated logic, integration tests check database boundaries, and graph-api tests execute end-to-end agent flows. Understanding these test tiers ensures you apply the correct mocking strategies and validation commands for robust FitPal test coverage.

Can I use pytest to test a new node without making database calls?

Yes, you can test new nodes without database calls by writing unit tests that mock dependencies. Focus testing philosophy on logic over dependencies, applying strict mock boundary rules to isolate the node and ensure deterministic, fast test execution.

Why does my integration test fail to maintain data isolation in the FitPal agent?

Integration tests fail data isolation when integration DB testing patterns are not followed correctly. Apply the provided database mocking rules and structural conventions to enforce deterministic testing and prevent test data from leaking between runs.