dbtest.test_con
option.dbtest.test_con
option to a valid db connection in order to overwrite dbtest::db_test_con
.count
works in expect_table_has
.expect_sql_exists
, which tests that the SQL query returns something.expect_sql_is
to expect_sql_equals
.expect_sql_equals
now returns the data.frame rather than the individual result.db_test_that
, a safe test wrapper for isolating database actions.expect_table
, expect_table_has
, and expect_sql_is
.db_test_con
passes along errors making for easier debugging.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.