Skip to content

Commit 6c0282b

Browse files
committed
Sync open source content 🐝 (from c971309217c88ad5d1a7d533cc5f4f192919cfd0)
1 parent cc47e05 commit 6c0282b

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

docs/customize-testing/bootstrapping-test-generation.mdx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,17 @@ generation:
4545
When enabling for the first time this will generate tests for all operations in the OpenAPI document.
4646
Then going forward it will only generate tests for any operations not already found in the `.speakeasy/tests.arazzo.yaml` file.
4747

48+
## Disabling test generation
49+
50+
To completely disable test generation, delete the `.speakeasy/tests.arazzo.yaml` file from your repository:
51+
52+
```bash
53+
rm .speakeasy/tests.arazzo.yaml
54+
```
55+
56+
The existence of this file is what triggers test generation. Once removed, no tests will be generated regardless of your configuration.
57+
58+
### Disable test generation for specific operations
4859

4960
After enabling test generation, to disable generation of tests for a specific operation, explicitly set `x-speakeasy-test: false`:
5061

@@ -70,11 +81,11 @@ Generated test files are written in language-specific locations, relative to the
7081
{ language: "Go", location: "`tests/`" },
7182
{ language: "Python", location: "`tests/`" },
7283
{ language: "TypeScript", location: "`src/__tests__`" },
73-
{ language: "Java", location: "`src/test/java`" }
84+
{ language: "Java", location: "`src/test/java`" },
7485
]}
7586
columns={[
7687
{ key: "language", header: "Language" },
77-
{ key: "location", header: "Location" }
88+
{ key: "location", header: "Location" },
7889
]}
7990
/>
8091

0 commit comments

Comments
 (0)