Compact test runner for nocodo-llm-sdk that conditionally runs integration tests based on available API keys.
# From nocodo-llm-sdk directory
cargo run --bin test-runner --features test-runner -- test-config.tomlCreate a test-config.toml file with your API keys:
[api_keys]
anthropic_api_key = "sk-ant-..."
openai_api_key = "sk-..."
xai_api_key = "xai-..."
cerebras_api_key = "csk-..."Notes:
- Key names can be lowercase (will be converted to uppercase env vars automatically)
- You can also use your existing
manager.tomlconfig file - Non-string values in
[api_keys]section are ignored (e.g., booleans)
See test-config.example.toml for a template.
- Always runs: Unit tests (no API keys needed)
- Conditionally runs: Integration tests only if corresponding API key exists
- Always runs: Zen integration tests (free, no API keys needed)
| Test | API Key Required | Description |
|---|---|---|
| Unit tests | None | All unit tests |
claude_integration |
ANTHROPIC_API_KEY |
Claude API tests |
gpt_integration |
OPENAI_API_KEY |
OpenAI GPT tests |
grok_integration |
XAI_API_KEY |
xAI Grok tests |
glm_integration |
CEREBRAS_API_KEY |
Cerebras GLM tests |
zen_grok_integration |
None (free) | Zen Grok tests |
zen_glm_integration |
None (free) | Zen GLM Big Pickle tests |
The runner uses --quiet mode to minimize noise. Only test results are shown.
Exit code 0 means all tests passed, non-zero means failures occurred.