Description Usage Arguments Value See Also Examples
Run a single datasource through the testing suite. Typically, this object would be a connection or a 'tbl_sql'
1 | test_single_database(datasource, tests = pkg_test(), label = NULL)
|
datasource |
The datasource to test against. Either a DBI connection or a tbl_sql |
tests |
optional A character vector of yaml tests to execute. References 'dbtest' test suite by default |
label |
optional The label to give the test. If not provided, one will be generated |
A list object with the label and testthat results
test_database
1 2 3 4 5 6 | ## Not run:
con <- DBI::dbConnect(RSQLite::SQLite(), ":memory:")
res <- test_single_database(con, pkg_test("simple-tests.yml"))
DBI::dbDisconnect(con)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.