Execute tests in the sandbox environment with automatic test runner detection
runTests
method executes tests in the sandbox environment and automatically detects the appropriate test runner (e.g., npm test, pytest, cargo test, etc.). This method supports both streaming and non-streaming execution modes.
Promise<AgentResponse>
containing the test execution results:
runTests
method automatically detects and uses the appropriate test runner based on the project structure:
npm test
or yarn test
pytest
, python -m unittest
, or python -m pytest
cargo test
go test