get_failed_tests: Get Failed Tests

Description Usage Arguments Value Examples

Description

Get Failed Tests

Usage

1
2

Arguments

playback

data.playback to extract failed tests from.

ignore_tests

character ignore test results from tests with these names.

ignore_cols

character ignore test results from tests of columns with these names.

ignore_combinations

list ignore test results from specific tests of specific columns.

Value

data.table with test results as logicals for all of the tests with at least one failure. A failed test for any given row is equivalent to a value of TRUE. If all tests passed, the function will simply return a data.table with one column, 'any_failures', that is always FALSE, to ensure that the output is (type) stable and consistent.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# record tape from `iris`.
tape <- record(iris)
# load data.
data(iris_newdata)
# validate new data by playing new tape on it.
playback <- play(tape, iris_newdata)

get_failed_tests(playback)
get_failed_tests(playback, ignore_tests = "outside_range")
get_failed_tests(playback, ignore_cols = "junk")
get_failed_tests(playback, ignore_combinations = list(outside_range = "Sepal.Width"))

smaakage85/recorder documentation built on June 14, 2019, 3:11 a.m.