Skip to content
Agent Orchestration
Command

/trex.test.integration

Run integration tests against a real PostgreSQL database (provisioned automatically via testcontainers).

BOOST
From plugin
platform
13111 skills6 agents11 commands3 MCP
Install
$ npx -y skills add ambient-code/platform --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/trex.test.integration

Context preview

What this command does when you run it.

Run integration tests against a real PostgreSQL database (provisioned automatically via testcontainers).

Command definition

trex.test.integration.md

Run Integration Tests

Run integration tests against a real PostgreSQL database (provisioned automatically via testcontainers).

Instructions

1. Build the binary to ensure everything compiles:

   make binary

2. Run integration tests:

   make test-integration

3. To run a specific test or subset:

   TESTFLAGS="-run TestDinosaurGet" make test-integration

4. Report results with pass/fail summary.

How Integration Tests Work

  • Database: Testcontainers automatically starts a PostgreSQL instance (no manual setup needed)
  • Each test calls `test.RegisterIntegration(t)` which returns a `(*Helper, *openapi.APIClient)`
  • The database is reset between tests via `helper.DBFactory.ResetDB()`
  • Tests use gomega matchers (`Expect(...).To(...)`)

Test Files

  • `test/integration/` — Contains all integration test files

Adding New Test Files

Follow the pattern in existing test files. Every test function should: 1. Call `h, client := test.RegisterIntegration(t)` 2. Create an account: `account := h.NewRandAccount()` 3. Get an authenticated context: `ctx := h.NewAuthenticatedContext(account)` 4. Use `client.DefaultAPI.Api...` methods for API calls

Ships withplatform

Kubernetes-native AI automation platform for intelligent agentic sessions

Get the whole plugin

Other commands on platform.