runTests: Runs the tests associated with this Shiny app

Description Usage Arguments Details

View source: R/test.R

Description

Sources the .R files in the top-level of tests/ much like R CMD check. These files are typically simple runners for tests nested in other directories under tests/.

Usage

1
runTests(appDir = ".", filter = NULL)

Arguments

appDir

The base directory for the application.

filter

If not NULL, only tests with file names matching this regular expression will be executed. Matching is performed on the file name including the extension.

Details

Historically, shinytest recommended placing tests at the top-level of the tests/ directory. In order to support that model, testApp first checks to see if the .R files in the tests/ directory are all shinytests; if so, just calls out to shinytest::testApp().


tomkuipers1402/shiny documentation built on Feb. 13, 2020, 7:22 p.m.