kapso test

Run tests for your Kapso agent to evaluate its performance and behavior.

Usage

kapso test [TARGET] [-v]

Arguments

ArgumentDescriptionDefault
TARGETOptional path to a test file or directory./tests directory

Flags

FlagDescription
-v, --verboseShow detailed test results including feedback and conversation

Description

The test command runs tests for your Kapso agent based on previously created test suites and test cases. It evaluates how well your agent responds to different scenarios and provides feedback on its performance.

The command:

  1. Identifies test files to run based on the provided target
  2. Runs each test against your agent
  3. Displays results and evaluation metrics
  4. Provides a summary of passed and failed tests

Examples

Run all tests in the ./tests directory:

kapso test

Run tests in a specific directory:

kapso test path/to/directory

Run a specific test file:

kapso test path/to/test.yaml

Run tests with detailed output:

kapso test --verbose

Output

The command outputs:

  • Test results (pass/fail)
  • Summary statistics
  • Detailed conversation logs (with —verbose flag)
  • Performance metrics

Notes

  • Tests are defined in test case files created with kapso create test-case
  • The command uses the agent defined in your local agent.yaml file by default
  • The verbose flag is useful for debugging test failures