DBItest (version 1.3)

test_driver: Test the "Driver" class

Description

Test the "Driver" class

Usage

test_driver(skip = NULL, ctx = get_default_context())

Arguments

skip
[character()] A vector of regular expressions to match against test names; skip test if matching any.
ctx
[DBItest_context] A test context as created by make_context.

Details

This function defines the following tests:
inherits_from_driver
Driver inherits from "DBIDriver" class

data_type_driver
SQL Data types exist for all basic R data types. dbDataType() does not throw an error and returns a nonempty atomic character

constructor_strict
Package exports constructor function that has no arguments. The name of the constructor can be tweaked via constructor_name in the context's tweaks, default: package name without the leading R. This test is optional, the constructor test is a slightly weaker version.

constructor
Package exports constructor function, all arguments have default values. The name of the constructor can be tweaked via constructor_name in the context's tweaks, default: package name without the leading R (if it exists).

get_info_driver
Return value of dbGetInfo has necessary elements

stress_load_unload
Repeated load, instantiation, and unload of package in a new R session.

See Also

Other tests: test_compliance, test_connection, test_getting_started, test_meta, test_result, test_sql