Skip to content

Commit 8c9f320

Browse files
committed
Add provider selection instructions for test generation
Updated end-to-end testing documentation to include instructions on choosing a provider (Anthropic or OpenAI) when generating tests. Also added a new, empty Python file for app variation login core.
1 parent b527432 commit 8c9f320

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

components/outputs/ui/app-variation-login-core.py

Whitespace-only changes.

docs/end-to-end-testing.qmd

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,17 @@ pip install "shiny[test,testgen]"
189189
- Anthropic: `export ANTHROPIC_API_KEY=...`
190190
- OpenAI: `export OPENAI_API_KEY=...`
191191

192+
193+
#### Choosing a provider for generating tests
194+
195+
```bash
196+
# Anthropic (default)
197+
shiny add test --app app.py --provider anthropic --model sonnet
198+
199+
# OpenAI
200+
shiny add test --app app.py --provider openai --model gpt-5
201+
```
202+
192203
::: callout-note
193204
The generated file is a **starting point**, not a full coverage suite. Iterate toward meaningful, stable assertions aligned with your app’s business logic.
194205
:::

0 commit comments

Comments
 (0)