Learn R Programming

shinytest (version 1.0.2)

snapshotCompare: Compare current and expected snapshots

Description

This compares a current and expected snapshot for a test set, and prints any differences to the console.

Update expected snapshot with current snapshot

Usage

snapshotCompare(name, appDir, autoremove = TRUE)

snapshotUpdate(name, appDir = ".")

Arguments

name
Name of a snapshot.
appDir
Directory that holds the tests for an application. This is the parent directory for the expected and current snapshot directories.
autoremove
If the current results match the expected results, should the current results be removed automatically? Defaults to TRUE.