Testing
Current tests use VoxEngine CI plus the Management API to run scenarios and print session logs.
Commands:
npm run vox:synccopies example scenarios intovoxfiles/and writes routing rules.npm run vox:uploaduploads scenarios and rules to the docs test app.npm run vox:test -- <provider>/<example-file>.jsruns a single example via the generic runner.- Example:
npm run vox:test -- deepgram/voxeengine-deepgram-answer-incoming-call.js - Example:
npm run vox:test -- elevenlabs-agents/voxeengine-elevenlabs-inbound.js
- Example:
Notes:
- Before any
voxengine-ci upload, runnode scripts/voxengine/sync-examples.mjs(ornpm run vox:sync) with the correctVOX_TEST_*_EXAMPLE_PATHenv vars so the latest example code is copied intovoxfiles/(or the configuredVOX_CI_ROOT_PATH). - To create additional dedicated routing rules, set
VOX_TEST_EXTRA_EXAMPLESto a comma-separated list of examples (relative tofern/docs/examples/). For example:VOX_TEST_EXTRA_EXAMPLES=elevenlabs-agents/voxeengine-elevenlabs-tool-call.js
Config:
.envstores app and call parameters.vox_ci_credentials.jsonstores service account credentials (gitignored).- Each provider’s API key must be set in ApplicationStorage for the test app (e.g.,
DEEPGRAM_API_KEY,ELEVENLABS_API_KEY, etc.).