~/talk

Old Apps, New Tricks: How AI can write Automated Tests for your Shiny Apps

Talkat posit::conf(2025) · 2025-09-16..09-18· [ai-assisted-development, testing]
links:none on file
slides:none on file

Automatic generation of regression tests for existing Shiny apps targets Shiny for Python only and produces Playwright-based tests that call the framework’s uses Playwright controllers to interact with inputs. The CLI (shiny add test v1.5 on PyPI) sends app code to an LLM via Chatlas-compatible providers (OpenAI, Anthropic), runs an evaluation suite across 10 benchmark apps requiring >80% pass via InspectAI to reduce hallucinations, and typically generates tests in ~6 seconds at about $0.07; tests cover only Shiny components and need stable IDs.

AI-written summary · about

  1. 0:00AI tests for Shiny apps
  2. 4:39Bugs threaten Shiny stability
  3. 5:01Shiny testing state
  4. 7:49Evolution of Shiny add test
  5. 9:14Integrating AI with Shiny add test
  6. 11:02Why Shiny add test beats AI
  7. 13:11Handling AI hallucinations
  8. 14:59Demo: AI test generation
  9. 16:23Best practices for AI tests
  10. 17:28Summary
  11. 17:52Q&A
  12. 18:14Manual test writing
  13. 18:55Future of AI tests for R Shiny
  14. 19:38Azure and Databricks support
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.