You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/customize-testing/customizing-sdk-tests.mdx
+25-9Lines changed: 25 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -3,16 +3,9 @@ title: "Customizing SDK Tests"
3
3
description: "Learn how to customize SDK tests after they are boostrapped."
4
4
---
5
5
6
-
# Customizing SDK Tests
7
-
8
-
## Regenerate tests from scratch
9
-
10
-
By default tests will only be populated from modifications to the `tests.arazzo.yaml` file after bootstrapping.
11
-
To regenerate all SDK tests from scratch, run the following command:
6
+
import { Callout } from"@/mdx/components";
12
7
13
-
```bash
14
-
speakeasy configure tests --rebuild
15
-
```
8
+
# Customizing SDK Tests
16
9
17
10
18
11
## Disable auto generation of tests for specific operations
@@ -81,3 +74,26 @@ To learn more about these kinds of modifications see [here](/docs/api-contract-t
81
74
## Next Steps
82
75
83
76
-[Setup testing in GitHub Actions](/docs/customize-testing/github-actions)
77
+
78
+
<Callouttitle="Bootstrapping tests again from scratch"type="info">
79
+
Once the original `tests.arazzo.yaml` document is bootstrapped, the Arazzo document will only be modified automatically when new operations are detected and `generateNewTests: true` is set in your `./speakeasy/gen.yaml`, new tests will be bootstrapped for these new operations. But pre-bootstrapped tests will be left alone.
80
+
81
+
If you want to bootstrap all workflows in the Arazzo document from scratch again (for example to match changes to operations or examples in your spec), run the following command:
82
+
83
+
```bash
84
+
speakeasy configure tests --rebuild
85
+
```
86
+
87
+
You can also selectively bootstrap individual tests by:
88
+
1. Deleting the specific workflow from the arazzo doc in `.speakeasy/tests.arazzo.yaml`
89
+
2. Removing the corresponding entry in `.speakeasy/gen.lock` under `generatedTests`
90
+
91
+
For example, to bootstrap a test for the `createLink` operation again, delete its entry in the gen.lock file:
92
+
93
+
```yaml
94
+
generatedTests:
95
+
createLink: "2025-05-21T12:47:33+10:00"# Delete this to bootstrap test again from scratch
96
+
```
97
+
98
+
This approach preserves any other manual changes you've made to your arazzo doc.
0 commit comments