Integration test

From PeterBooker/veloria · View interactive version

Integration test is an AI agent skill from the GitHub repository PeterBooker/veloria. Run integration tests that require Docker (Postgres, MinIO via testcontainers). Use to validate database and storage behavior.

How to use this skill

Skill file

Integration Tests

Run integration tests that use testcontainers-go for Postgres and MinIO.

Usage

Prerequisites

Steps

  1. Verify Docker is available

```bash

docker info > /dev/null 2>&1 && echo "Docker OK" || echo "Docker not available"

```

If Docker is not available, inform the user and stop.

  1. Run integration tests

For a specific package:

```bash

go test -tags integration -v -timeout 10m $ARGUMENTS 2>&1

```

For all packages:

```bash

go test -tags integration -v -timeout 10m ./... 2>&1

```

  1. Parse results

Report:

```

## Integration Test Results

### Passed

### Failed

### Summary

```

  1. On failure, read the failing test files to understand what's being tested and suggest fixes.

Test Infrastructure

Integration tests use the //go:build integration build tag and live alongside unit tests:

| File | Container | Purpose |

|------|-----------|---------|

| internal/testutil/postgres.go | PostgreSQL | Database integration tests |

| internal/testutil/minio.go | MinIO | S3-compatible storage tests |

Tips

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.