1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/test-all.R, R/test-getting-started.R,
% R/test-driver.R, R/test-connection.R, R/test-result.R, R/test-sql.R,
% R/test-meta.R, R/test-transaction.R, R/test-arrow.R, R/test-compliance.R,
% R/test-stress.R
\name{test_all}
\alias{test_all}
\alias{test_some}
\title{Run all tests}
\usage{
test_all(skip = NULL, run_only = NULL, ctx = get_default_context())
test_some(test, ctx = get_default_context())
}
\arguments{
\item{skip}{\verb{[character()]}\cr 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 \verb{_N} where \code{N} is a number.
For example, \code{skip = "exists_table"} will skip both
\code{"exists_table_1"} and \code{"exists_table_2"}.}
\item{run_only}{\verb{[character()]}\cr A vector of regular expressions to match
against test names; run only these tests.
The regular expressions are matched against the entire test name.}
\item{ctx}{\verb{[DBItest_context]}\cr A test context as created by
\code{\link[=make_context]{make_context()}}.}
\item{test}{\verb{[character]}\cr
A character vector of regular expressions
describing the tests to run.
The regular expressions are matched against the entire test name.}
}
\description{
\code{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 \code{DBITEST_ONLY_RESULT} to a nonempty
value to run only \code{test_result()}.
\code{test_some()} allows testing one or more tests.
}
\details{
Internally \code{^} and \code{$} are used as prefix and suffix around the
regular expressions passed in the \code{skip} and \code{run_only} arguments.
}
\section{Tests}{
This function runs the following tests, except the stress tests:
\code{\link[=test_getting_started]{test_getting_started()}}:
Getting started with testing
\code{\link[=test_driver]{test_driver()}}:
Test the "Driver" class
\code{\link[=test_connection]{test_connection()}}:
Test the "Connection" class
\code{\link[=test_result]{test_result()}}:
Test the "Result" class
\code{\link[=test_sql]{test_sql()}}:
Test SQL methods
\code{\link[=test_meta]{test_meta()}}:
Test metadata functions
\code{\link[=test_transaction]{test_transaction()}}:
Test transaction functions
\code{\link[=test_arrow]{test_arrow()}}:
Test Arrow methods
\code{\link[=test_compliance]{test_compliance()}}:
Test full compliance to DBI
\code{\link[=test_stress]{test_stress()}}:
Stress tests (not tested with \code{test_all})
}
|