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: site/docs/configuration/scenarios.md
+9
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,15 @@ Here is the structure of a `Scenario`:
82
82
| config | `Partial<TestCase>[]` | Yes | An array of variable sets. Each set will be run through the tests. |
83
83
| tests | `TestCase[]` | Yes | The tests to be run on each set of variables. |
84
84
85
+
Scenarios can also be loaded from external files. To reference an external file, use the `file://` prefix:
86
+
87
+
```yaml
88
+
scenarios:
89
+
- file://path/to/your/scenario.yaml
90
+
```
91
+
92
+
The external file should follow the same structure as inline scenarios.
93
+
85
94
This functionality allows you to easily run a wide range of tests without having to manually create each one. It also keeps your configuration file cleaner and easier to read.
0 commit comments