Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion fern/products/sdks/guides/testing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ Fern generates unit tests for all SDK languages. They verify individual methods

Mock server (wire) tests run your SDK against a mock server generated from your API definition. They verify that the SDK sends HTTP requests and receives HTTP responses as expected. These tests are generated for all endpoints in a service.

Mock server tests are available for TypeScript, Go, and Java. Configure mock server tests in your `generators.yml`:
Mock server tests are available for TypeScript, Go, Java, and Swift. Configure mock server tests in your `generators.yml`:

| Language | Configuration | Default |
|----------|---------------|---------|
| TypeScript | [`generateWireTests`](/sdks/generators/typescript/configuration#generatewiretests) | true |
| Go | [`enableWireTests`](/sdks/generators/go/configuration#enablewiretests) | false |
| Java | [`enable-wire-tests`](/sdks/generators/java/configuration#enablewiretests) | false |
| Swift | [`enableWireTests`](/sdks/generators/swift/configuration#enablewiretests) | true |

## Integration tests

Expand Down
7 changes: 6 additions & 1 deletion fern/products/sdks/overview/swift/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: Configuration options for the Fern Swift SDK.

You can customize the behavior of the Swift SDK generator in `generators.yml`:

```yaml {6-9} title="generators.yml"
```yaml {6-10} title="generators.yml"
groups:
swift-sdk:
generators:
Expand All @@ -15,6 +15,7 @@ groups:
clientClassName: YourClientName
environmentEnumName: YourCustomEnvironment
moduleName: MyCustomModule
enableWireTests: false
```

## SDK Configuration Options
Expand All @@ -30,3 +31,7 @@ The name of the generated environment enum. This allows you to customize the enu
<ParamField path="moduleName" type="string" required={false} toc={true}>
The module name used in client code (e.g., `import MyCustomModule`). When provided, this name is used consistently across the library, product, and target.
</ParamField>

<ParamField path="enableWireTests" type="boolean" default="true" required={false} toc={true}>
Generates [mock server (wire) tests](/sdks/deep-dives/testing#mock-server-tests) to verify that the SDK sends and receives HTTP requests as expected.
</ParamField>
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Publish your public-facing Fern Swift SDK as a Swift package distributed via Git
swift-sdk:
generators:
- name: fernapi/fern-swift-sdk
version: 1.0.0
version: <Markdown src="/snippets/version-number-swift.mdx"/>
github:
repository: your-org/company-swift
```
Expand Down