Integration Testing

Automates database integration testing to verify data integrity and constraints.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Integration tests verify database operations and constraints across the LivestockAI data layer, ensuring reliability as the system evolves.

Core Features & Use Cases

  • Setup reproducible test databases and migrations
  • Validate foreign key constraints and data seeding
  • End-to-end verification of batch workflows and related models

Quick Start

Run the integration test suite against a dedicated test database to validate migrations, seeding, and data integrity.

Frequently Asked Questions about Integration Testing

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

FAQPage Schema
How do I automate database integration testing with Vitest and Postgres?

Database integration testing with Vitest and Postgres validates migrations and data integrity by executing tests against a dedicated test database. The suite verifies foreign key constraints, seeding, and end-to-end workflows across modules.

What is the best way to validate database migrations and foreign key constraints?

Validating database migrations and foreign key constraints requires running an integration test suite against a dedicated test database. This verifies data integrity, confirms seeding accuracy, and ensures relationship rules hold as the system evolves.

Does Vitest work with Postgres for end-to-end workflow testing?

Vitest works with Postgres by executing integration tests against a dedicated test database environment. It automates end-to-end workflow verification across modules like batches and species, confirming database constraints and data integrity.

How do I set up a reproducible test database for integration testing?

Setting up a reproducible test database for integration testing involves configuring a dedicated test environment to validate migrations and data seeding. This ensures consistent data integrity checks and reliable end-to-end workflow verification.

Why does my database seeding fail during integration tests?

Database seeding fails during integration tests when foreign key constraints are violated or migrations are incomplete. Running an automated test suite against a dedicated test database isolates these data integrity issues for verification.