Testing for Shiny Applications
Overview
Automated unit testing of Shiny applications through a headless 'Chromium' browser.
New features
local_app_support(),with_app_support(), andload_app_support()documentation has been expanded to clarify when each function is needed. The use-package vignette now includes detailed examples and a decision tree to help users choose the right approach (#438).
Bug fixes and minor improvements
- All vignette images now include alt text for improved accessibility (#435).
record_test()no longer prints a debug message when recording tests in a package directory (#437).record_test(app=)now properly handles function apps. Previously, passing a function would error with "object of type 'closure' is not subsettable" when determining the test file name (#439).
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- NOTE12 OK, 1 NOTE2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 10 (2 internal)
- Examples that run
- 20%1 run in a plain check (under a condition) · 4 never run
- Exported functions with examples
- 50%
- Documented parameters
- 98%
- Return-value docs
- 10%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 97%
- Median days to close, 50 most recently updated closed issues
- 88
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
8 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/rstudio/shinytest2 on 2026-10-18.
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2025-12-23Seen in the repository: CLAUDE.mdNamed in .Rbuildignore: .claude, CLAUDE.mdNamed in .gitignore: .claudePull request it wrote: opened by a project memberCommits: at least 2 crediting it in the message
- GitHub Copilotfirst seen 2025-12-23Seen in the repository: .github/copilot-instructions.mdPull request: opened by its own accountCommits: 3 by its own account
- Claude CodePull requests: 2 from outside contributors, first on 2026-02-25
- Claude Opus 4.62 commits · Apr 2026
Dependencies
Installing shinytest2 adds 65 packages (36 with compiled code, 36 MB of source tarballs). Heaviest: bslib 5.6 MB, promises 3.1 MB, sass 2.9 MB.
Show the 48 most downloaded packagesHide the 48 most downloaded packages
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.5.1Latest
- 0.5.0
- 0.4.12025-04-12 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.4.02025-04-10 · diff ↗
- 0.3.22024-04-28 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.3.12023-08-26 · diff ↗
- 0.3.02023-08-15 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.2.12023-02-21 · diff ↗
- 0.2.0
- 0.1.12022-09-06 · diff ↗
- 0.1.02022-04-27
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2022-04-27
- Total releases
- 11 / 4 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 5.6 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("shinytest2")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.