plot_tests: Plot Tests

Description Usage Arguments Value Examples

Description

Plot the output from 'test_single_database' or 'test_database' as a ggplot2 object for easy visualization of test success or failure across databases.

Usage

1
2
3
plot_tests(results)

plot_summary(results)

Arguments

results

Output from 'test_single_database' or 'test_database'

Value

list of ggplot2 objects / graphs

Examples

1
2
3
4
5
con <- DBI::dbConnect(RSQLite::SQLite(), ":memory:")
tbl_data <- dplyr::copy_to(con, testdata)
res <- test_database(tbl_data, pkg_test("simple-tests.yml"))
plot_tests(res)
DBI::dbDisconnect(con)

rstudio/dbtest documentation built on May 6, 2019, 10:47 a.m.