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/test-cases.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,23 @@ tests:
62
62
difficulty: easy
63
63
```
64
64
65
+
### Repeating an Individual Test
66
+
67
+
Set `options.repeat` to a positive integer to run one test case multiple times:
68
+
69
+
```yaml title="promptfooconfig.yaml"
70
+
tests:
71
+
- description: 'Sample a nondeterministic response'
72
+
vars:
73
+
question: 'Write a short greeting'
74
+
options:
75
+
repeat: 3
76
+
```
77
+
78
+
The per-test value overrides `--repeat`, `commandLineOptions.repeat`, or
79
+
`evaluateOptions.repeat`for that test. Other tests continue to use the global repeat count.
80
+
Repeat indexes use separate cache entries; add `--no-cache` when every run must call the provider.
81
+
65
82
### Filtering Tests by Provider
66
83
67
84
Control which providers run specific tests using the `providers` field. This allows you to run different test suites against different models in a single evaluation:
0 commit comments