DBItest (version 1.8.1)

test_all: Run all tests

Description

test_all() calls all tests defined in this package (see the section "Tests" below). This function supports running only one test by setting an environment variable, e.g., set the DBITEST_ONLY_RESULT to a nonempty value to run only test_result().

test_some() allows testing one or more tests.

Usage

test_all(skip = NULL, run_only = NULL, ctx = get_default_context())

test_some(test, ctx = get_default_context())

Arguments

skip

[character()]
A vector of regular expressions to match against test names; skip test if matching any. The regular expressions are matched against the entire test name minus a possible suffix _N where N is a number. For example, skip = "exists_table" will skip both "exists_table_1" and "exists_table_2".

run_only

[character()]
A vector of regular expressions to match against test names; run only these tests. The regular expressions are matched against the entire test name.

ctx

[DBItest_context]
A test context as created by make_context().

test

[character]
A character vector of regular expressions describing the tests to run. The regular expressions are matched against the entire test name.

Tests

This function runs the following tests, except the stress tests:

test_getting_started(): Getting started with testing

test_driver(): Test the "Driver" class

test_connection(): Test the "Connection" class

test_result(): Test the "Result" class

test_sql(): Test SQL methods

test_meta(): Test metadata functions

test_transaction(): Test transaction functions

test_arrow(): Test Arrow methods

test_compliance(): Test full compliance to DBI

test_stress(): Stress tests (not tested with test_all)

Details

Internally ^ and $ are used as prefix and suffix around the regular expressions passed in the skip and run_only arguments.