Skip to content
Agent Orchestration
Command

/trex.test.unit

Run unit tests against the package and command code (no database required).

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.unit

Context preview

What this command does when you run it.

Run unit tests against the package and command code (no database required).

Command definition

trex.test.unit.md

Run Unit Tests

Run unit tests against the package and command code (no database required).

Instructions

1. Run unit tests:

   make test

2. To run specific tests:

   TESTFLAGS="-run TestLoadServices" make test

3. Report results with pass/fail summary.

How Unit Tests Work

  • Scope: `./pkg/...` and `./cmd/...`
  • Uses standard `go test` for output

When to Use This vs `trex.test.integration`

  • **Unit tests**: Fast, no external dependencies, test individual packages
  • **Integration tests**: Full stack with real database, test API endpoints end-to-end
Ships withplatform

Kubernetes-native AI automation platform for intelligent agentic sessions

Get the whole plugin

Other commands on platform.