Testing
kapso test
Run tests for your Kapso agent
kapso test
Run tests for your Kapso agent to evaluate its performance and behavior.
Usage
Arguments
Argument | Description | Default |
---|---|---|
TARGET | Optional path to a test file or directory | ./tests directory |
Flags
Flag | Description |
---|---|
-v, --verbose | Show 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:
- Identifies test files to run based on the provided target
- Runs each test against your agent
- Displays results and evaluation metrics
- Provides a summary of passed and failed tests
Examples
Run all tests in the ./tests directory:
Run tests in a specific directory:
Run a specific test file:
Run tests with detailed output:
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