run_local_test: Check an operator result against a previously saved run

run_local_testR Documentation

Check an operator result against a previously saved run

Description

Based on a test name, compares a computed table against a previously saved one.

Usage

run_local_test(
  res_table,
  ctx,
  test_name,
  test_folder = NULL,
  absTol = NULL,
  relTol = NULL,
  r2 = NULL,
  skipCols = c(),
  forcejoincol = NULL,
  forcejoinrow = NULL
)

Arguments

res_table

operator output table with namespace

ctx

Tercen context

test_name

Name identifying the test.

absTol

Absolute tolerance parameter.

relTol

Relative tolerance parameter.

r2

Squared correlation parameter.

skipCols

Column names to be skipped during testing

forcejoincol

Logical array matching num. of out_table to force relation to column (when join was not made through .ci).

forcejoinrow

Logical array matching num. of out_table to force relation to row (when join was not made through .ri).

Examples

run_local_test(tbl, ctx, paste0(step_name, "_absTol"), absTol = 0.001)


tercen/tim documentation built on May 3, 2023, 10:43 p.m.