Testing
May 15, 2026 ยท View on GitHub
Local Verification
Run the full local verification suite:
cargo fmt --check
cargo clippy --all-targets -- -D warnings
cargo test
Targeted Tests
| Area | Command |
|---|---|
| Config parsing | cargo test --test config |
| Grok Responses payload and response adapters | cargo test --test adapter_grok_responses |
| Search orchestration | cargo test --test service_contract |
| Tavily parsing | cargo test --test tavily_parse |
| Source merge behavior | cargo test --test source_merge |
| Logging | cargo test --test logging |
Live Smoke Testing
Live provider tests require real API keys and should not be committed as logs.
Recommended smoke matrix:
GROK_SEARCH_URL=https://api.x.aior another compatible gateway root URL.GROK_SEARCH_X_SEARCH=falsefor baseline Responsesweb_searchonly.GROK_SEARCH_X_SEARCH=trueonly when the gateway is known to preservex_search.- Tavily fallback by forcing an empty or source-less Grok response in tests.
web_fetchagainst a stable public URL, first with Tavily, then with Firecrawl fallback.web_mapwith a smallmax_resultsvalue.
Store live logs under logs/; the directory is ignored by git.