Execution
This is the heart of your test — the one action whose result you want to verify. Every test has exactly one execution, either an HTTP request or a CLI command. Spark captures the full response and makes it available to your assertions.
Send a request to an API endpoint and capture the response. This is the most common test type.
execution:
executor: http
target: http://api:8080
request:
method: GET
url: /api/users
Run a command inside a container and capture the exit code, stdout, and stderr.
execution:
executor: cli
cli:
service: app
command: bin/console users:list
Every test runs in isolation. Each test gets its own Docker network, so your services are completely separate from other tests running in parallel. No shared state, no flaky tests.