manageTestPlots: Visually inspect failed test plots.

View source: R/test.R

manageTestPlotsR Documentation

Visually inspect failed test plots.

Description

This function is a wrapper around testthat::snapshot_review(). It allows visual inspection of the plots in the unit tests that produced an error. If no analysis is specified it will iterate over all test cases.

Usage

manageTestPlots(name = NULL)

Arguments

name

Optional string name of the analysis whose plots should be tested.

Value

A Shiny app that shows all failed cases. The app allows test plots to be validated, at which point they are placed in the _snaps directory and used as a reference for future tests.

Examples


# manageTestPlots("Anova")


jasp-stats/JASPTools documentation built on April 24, 2024, 11:18 a.m.