viewTestDiff: View differences in test results

View source: R/view-diff.R

viewTestDiffR Documentation

View differences in test results

Description

View differences in test results

Usage

viewTestDiff(
  appDir = ".",
  testnames = NULL,
  interactive = is_interactive(),
  images = TRUE,
  suffix = NULL
)

Arguments

appDir

Directory of the Shiny application that was tested.

testnames

A character vector of names of tests to compare. If NULL, compare all test results for which there are differences.

interactive

If TRUE, use the interactive diff viewer, which runs in a Shiny app. If FALSE, print a textual diff, generated by textTestDiff().

images

Compare screenshot images (only used when interactive is FALSE).

suffix

An optional suffix for the expected results directory. For example, if the suffix is "mac", the expected directory would be mytest-expected-mac.

Value

A character vector the same length as testnames, with "accept" or "reject" for each test.

See Also

textTestDiff() to get a text diff as a string.


shinytest documentation built on May 29, 2024, 6:33 a.m.