setup-sdk-testing
Use when setting up SDK testing, configuring contract tests, writing Arazzo test workflows, or running integration tests.
Skill by speakeasy-api
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/speakeasy-api-setup-sdk-testing
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, backend, testing, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/setup-sdk-testing
What's inside
- Skill name
setup-sdk-testing- Description
- Use when setting up SDK testing, configuring contract tests, writing Arazzo test workflows, or running integration tests. Triggers on "SDK testing", "test SDK", "contract testing", "Arazzo tests", "integration tests", "speakeasy test", "mock server", "test generation", "ResponseValidationError"
- License
- Apache-2.0
- Instructions
- 361 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- arazzo-reference.md · content/
SKILL.md (first lines)
# setup-sdk-testing
Set up and run tests for Speakeasy-generated SDKs using contract testing, custom Arazzo workflows, or integration tests against live APIs.
## Content Guides
| Topic | Guide |
|-------|-------|
| Arazzo Reference | [content/arazzo-reference.md](content/arazzo-reference.md) |
The Arazzo reference provides complete syntax for workflows, steps, success criteria, environment variables, and chaining operations.
## When to Use
- Setting up automated testing for a generated SDK
- Enabling contract test generation via `gen.yaml`
- Writing custom multi-step API workflow tests with Arazzo
- Configuring integration tests against a live API
- Debugging `ResponseValidationError` or test failures
- User says: "test SDK", "contract testing", "Arazzo tests", "speakeasy test", "mock server", "test generation"
## Inputs
| Input | Required | Description |
|-------|----------|-------------|
| `gen.yaml` | Yes | Generation config; contract testing is enabled here |
| OpenAPI spec | Yes | The API spec the SDK is generated from |
| Target language | Yes | `typescript`, `python`, `go`, or `java` (contract test support) |
| `.speakeasy/tests.arazzo.yaml` | No | Custom Arazzo test definitions |
| Live API credentials | No | Required only for integration testing |
## Outputs
| Output | Location |
|--------|----------|
| Generated contract tests | `tests/` directory in SDK output |
| Mock server config | Auto-generated alongside contract tests |
| Arazzo test results | Terminal output from `speakeasy test` |
| CI workflow | `.github/workflows/` (if integration testing configured) |
## Prerequisites
- Speakeasy CLI installed and authenticated (`speakeasy auth login`)
- A working SDK generation setup (`gen.yaml` + OpenAPI spec)
- For integration tests: API credentials as environment variables
## Decision Framework
Pick the right testing approach based on what you need:
| Need | Approach | Effort |
|------|----------|--------|
| Verify SDK types and methods match the API contract | Contract testing | Low (auto-generated) |
| Test multi-step API workflows (create then verify) | Custom Arazzo tests | Medium |
| Validate against a live API with real data | Integration testing | High |
| Catch regressions on every SDK regeneration | Contract testing + CI | Low |
| Test authentication flows end-to-end | Integration testing | High |
| Verify chained operations with data dependencies | Custom Arazzo tests | Medium |
**Start with contract testing.** It is auto-generated and catches the most common issues. Add custom Arazzo tests for workflow coverage, and integration tests only when live API validation is required.
## Command
### Enable Contract Testing
Add to `gen.yaml`:
```yaml
generation:
tests:
generateTests: true
```
Then regenerate the SDK:
```bash
speakeasy run --output console
```
### Run Tests
```bash
# Run all Arazzo-defined tests (contract + custom)
speakeasy test
# Run tests for a specific target
speakeasy test --target my-typescript-sdk
# Run with verbose output for debugging
speakeasy test --verbose
```
### Run via CI
Contract tests run automatically in the Speakeasy GitHub Actions workflow when test generation is enabled. No additional CI configuration is needed for contract tests.
## Example
### 1. Contract Testing (Quick Start)
Enable test generation in `gen.yaml`:
```yaml
generation:
tests:
generateTests: true
```
Regenerate the SDK:
```bash
speakeasy run --output console
```
Run the generated tests:
```bash
speakeasy test
```From speakeasy-api/sdk-generation-skills, Apache-2.0.
More from speakeasy-api/sdk-generation-skills
- 0.487score
writing-openapi-specs
speakeasy-api
Reference guide for OpenAPI specification best practices, naming conventions, and expressing complex REST API patterns like polymorphism, enums, file uploads…
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
customize-sdk-hooks
speakeasy-api
Use when implementing SDK code hooks for custom logic (not spec configuration or runtime overrides).
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
diagnose-generation-failure
speakeasy-api
Use when SDK generation failed or seeing errors.
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
extract-openapi-from-code
speakeasy-api
Use when extracting or generating an OpenAPI spec from existing API code.
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
generate-mcp-server
speakeasy-api
Use when generating an MCP server from an OpenAPI spec with Speakeasy.
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
generate-terraform-provider
speakeasy-api
Use when generating a Terraform provider from an OpenAPI spec with Speakeasy.
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
improve-sdk-naming
speakeasy-api
Use when you want AI-powered suggestions for SDK naming improvements via the `speakeasy suggest` command (not manual overlay creation).
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
manage-openapi-overlays
speakeasy-api
Use when creating, applying, or validating overlay files including x-speakeasy extensions.
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
orchestrate-multi-repo-sdks
speakeasy-api
Use when each language SDK lives in a separate repository.
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
orchestrate-multi-target-sdks
speakeasy-api
Use when generating SDKs for multiple languages from a single OpenAPI spec, or multiple SDK variants from different sources.
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
configure-sdk-options
speakeasy-api
Use when CONFIGURING an existing SDK - NOT for initial generation.
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
start-new-sdk-project
speakeasy-api
Use when generating a new SDK from an OpenAPI spec.
SkillDFreshness: D★ 18Claude Code +9
Signals
- Stars
- 18
- Forks
- 6
- Open issues
- 0
- Last commit (this folder)
- Feb 3, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Website
- www.speakeasy.com/docs
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from speakeasy-api
- 0.487score
customize-sdk-hooks
speakeasy-api
Use when implementing SDK code hooks for custom logic (not spec configuration or runtime overrides).
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
diagnose-generation-failure
speakeasy-api
Use when SDK generation failed or seeing errors.
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
extract-openapi-from-code
speakeasy-api
Use when extracting or generating an OpenAPI spec from existing API code.
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
generate-mcp-server
speakeasy-api
Use when generating an MCP server from an OpenAPI spec with Speakeasy.
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
generate-terraform-provider
speakeasy-api
Use when generating a Terraform provider from an OpenAPI spec with Speakeasy.
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
configure-sdk-options
speakeasy-api
Use when CONFIGURING an existing SDK - NOT for initial generation.
SkillDFreshness: D★ 18Claude Code +9
Cite this page
setup-sdk-testing skill. Agent Mart. https://agentmart.dev/skills/speakeasy-api-setup-sdk-testing (last updated 2026-10-24)