TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/visible/cruel/llms.txt
Use this file to discover all available pages before exploring further.
test command runs chaos tests against an endpoint, injecting failures, delays, and timeouts to validate your application’s resilience.
Syntax
Arguments
The endpoint URL to test (e.g., https://api.example.com/users)
Options
Number of requests to send during the test
Failure rate between 0 and 1 (e.g., 0.1 = 10% failure rate)
Delay in milliseconds or min-max range (e.g., 100 or “100-500”)
Timeout rate between 0 and 1 (e.g., 0.05 = 5% timeout rate)
Use a predefined chaos configuration preset instead of individual optionsAvailable: development, staging, production, harsh, nightmare, apocalypse
Number of retry attempts for failed requests with exponential backoff
Circuit breaker threshold - number of failures before circuit opens
Basic Usage
Using Presets
Advanced Usage
With Retry Logic
Test with automatic retries and exponential backoff:With Circuit Breaker
Test with circuit breaker pattern to prevent cascading failures:Combined Options
Combine multiple chaos patterns:Output Example
Output Indicators
During the test, real-time feedback is shown:.(green) - Successful requestX(red) - Failed requestT(yellow) - Timed out request
Results Breakdown
Success Metrics
- success: Number and percentage of successful requests
- failed: Number and percentage of failed requests
- timeouts: Number and percentage of timed out requests
Latency Metrics
- avg: Average response time
- min: Minimum response time
- max: Maximum response time
- p50: 50th percentile (median)
- p95: 95th percentile
- p99: 99th percentile
Configuration Details
When you run a test, the CLI displays your configuration:- The URL being tested
- Number of requests that will be sent
- Chaos configuration applied
- Retry configuration (if enabled)
- Circuit breaker threshold (if enabled)