| name | dochia-replay |
| description | Replay previous Dochia test runs to reproduce errors, re-validate fixes, or debug specific test failures. Use when the user wants to replay API tests, reproduce errors from a previous run, verify that a bug fix resolves previously failing tests, or re-run specific test cases. Also use after running dochia test or dochia fuzz when the user wants to confirm fixes or isolate flaky failures.
|
| metadata | {"triggers":"replay failing tests\nreproduce the error\nverify the fix\nre-run failed tests\nreplay dochia tests\nconfirm the bug is fixed\nrun the failing test again\n","examples":"dochia replay --errors -s http://localhost:8080\ndochia replay Test1,Test5 -s http://localhost:8080\ndochia replay --errors -s http://localhost:8080 -r ./previous-report\n"} |
Overview
dochia replay re-executes specific test scenarios from previous test runs. This is useful for reproducing errors,
debugging failures, and validating fixes.
Prerequisites
- Dochia CLI installed (any of the following):
brew install dochia-dev/tap/dochia-cli
curl -sSL get.dochia.dev | sh
docker pull dochiadev/dochia-cli
- A previous test run with reports in
./dochia-report (or custom output directory)
- A running API server
Basic Usage
dochia replay --errors -s <server_url>
dochia replay --warnings -s <server_url>
dochia replay Test1,Test5
dochia replay Test1,Test5 -s <server_url>
Common Options
| Option | Description |
|---|
-s, --server | Target server URL |
--errors | Replay all errors from previous run |
--warnings | Replay all warnings from previous run |
-v, --verbose | Verbose output |
-H | Add custom headers |
-o, --output | Output directory |
-r, --report-folder | Folder containing previous reports to replay from |
--proxy | Proxy URL |
--ssl-keystore | SSL keystore for HTTPS |
--auth-refresh-script | Script for token refresh |
Examples
dochia replay --errors -s http://localhost:8080 -v
dochia replay --errors -s http://localhost:8080 -r ./previous-report
dochia replay "RemoveFieldPlaybook_POST_/api/users_name,MalformedJsonPlaybook_POST_/api/users" \
-s http://localhost:8080 -v
Documentation
Full reference: https://docs.dochia.dev/cli/replay