Running SDK Tests
Run testing via any of these options, depending on the desired use case:
- Directly via the
speakeasy test
CLI command. - In GitHub Actions workflows.
- In the
speakeasy run
CLI command and existing GitHub Actions generation workflow with additional Speakeasy workflow configuration.
Via CLI
For multiple SDK targets, the following command prompts for which targets to run tests for:
speakeasy test
To run tests for all SDKs in the repo:
speakeasy test -t all
During Run
For speakeasy run
support, modify the Speakeasy workflow configuration (.speakeasy/workflow.yaml
).
Enable running tests during Speakeasy workflows by adding to one or more of the targets in the targets
section of the configuration.
targets:example-target:# ... other existing configuration ...testing:enabled: true
Viewing Test Reports
Test reports are available in the Tests tab under a particular SDK in the speakeasy dashboard (opens in a new tab).