Skip to content

Making tests

AppDriver
Drive a Shiny application
record_test()
Launch test event recorder for a Shiny app
platform_variant()
Platform specific variant
compare_screenshot_threshold() screenshot_max_difference()
Compare screenshots given threshold value

Running tests

test_app()
Test Shiny applications with testthat
local_app_support() with_app_support() load_app_support()
Attach the Shiny application's support environment

Setting up tests

use_shinytest2() use_shinytest2_test()
Use shinytest2 with your Shiny application

Migrating tests

migrate_from_shinytest()
Migrate shinytest tests