integration-testing

Design and execute end-to-end integration tests for the KTRDR system.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/kpiteira/ktrdr --skill integration-testing-kpiteira
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: integration-testing
Source: https://github.com/kpiteira/ktrdr/tree/main/.claude/skills/integration-testing
Command: npx skills add https://github.com/kpiteira/ktrdr --skill integration-testing-kpiteira

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures that all components of the KTRDR system work together as expected, validating end-to-end feature flows and acceptance criteria, beyond individual unit tests, to guarantee system reliability.

Core Features & Use Cases

  • Structured Test Design: Guides you through identifying triggers, flows, and observable outcomes, then choosing appropriate test categories (smoke, progress, cancellation, error) for comprehensive coverage.
  • Common Test Patterns: Provides reusable patterns for starting and verifying operations, polling progress, testing cancellation, and handling errors, simplifying test creation.
  • Service Health Checks: Offers quick commands to verify the health and connectivity of all KTRDR services, ensuring your test environment is ready.
  • Use Case: After implementing a new trading strategy, use this skill to design and execute an end-to-end integration test that starts a backtest via the API, monitors its progress, and verifies the final performance metrics, ensuring the entire system chain functions correctly.

Quick Start

I've implemented a new data loading feature. Use the integration-testing skill to help me design a smoke test to verify it works end-to-end.

Frequently Asked Questions about integration-testing

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

FAQPage Schema
How do I design end-to-end integration tests for a new feature?

End-to-end integration tests validate system-wide functionality by identifying triggers, flows, and observable outcomes across all components. Start by defining test categories—smoke, progress, cancellation, or error—then map acceptance criteria to test scenarios, set up test data and prerequisites, and execute against a live environment to verify the entire feature chain works correctly.

What's the difference between integration tests and unit tests?

Integration tests validate how multiple system components work together end-to-end, covering feature-level flows and acceptance criteria, while unit tests check individual functions in isolation. Integration testing catches failures that occur only when services interact, making it essential for verifying system reliability beyond individual component correctness.

Can I use Docker to set up an integration testing environment?

Yes. Docker simplifies integration testing by containerizing all services, ensuring consistent test environments across development and CI/CD pipelines. Use Docker to spin up dependent services, verify service health and connectivity, then execute end-to-end tests against the containerized stack.

How do I test FastAPI endpoints in an integration test?

Integration tests for FastAPI endpoints involve calling the API endpoints end-to-end through HTTP requests, monitoring response outcomes, and validating system state changes. Define test triggers (API calls), observe flows (polling for progress or results), and verify observable outcomes (response codes, data changes, side effects) across dependent services.

What should I check before running integration tests?

Before running integration tests, verify service health and connectivity of all system components using quick health-check commands. Confirm test data and prerequisites are in place, the test environment is ready, and all dependent services are running and accessible.

How do I handle test failures in integration testing?

Debug integration failures by isolating which component or service interaction broke: verify service health, check API responses and data state at each step, and review logs across all services. Common patterns include testing error scenarios explicitly and validating cancellation flows to catch edge cases early.