DBItest (version 1.3)

test_connection: Test the "Connection" class

Description

Test the "Connection" class

Usage

test_connection(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:
can_connect_and_disconnect
Can connect and disconnect, connection object inherits from "DBIConnection".

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

cannot_disconnect_twice
Repeated disconnect throws warning.

simultaneous_connections
Open 50 simultaneous connections

stress_connections
Open and close 50 connections

get_info_connection
Return value of dbGetInfo has necessary elements

stress_load_connect_unload
Repeated load, instantiation, connection, disconnection, and unload of package in a new R session.

See Also

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