test_that("buildRelease() output matches current ddl folder", {
generatedBaseFolder <- file.path(tempdir(check = TRUE), "ddl")
currentBaseFolder <- system.file("ddl", package = "CommonDataModel", mustWork = TRUE)
# build all of the releases in a temp folder
# compare to the files in the current ddl folder of the package
generatedDirectories <- list.dirs(generatedBaseFolder, full.names = F)
currentDirectories <- list.dirs(currentBaseFolder, full.names = F)
generatedFilenames <- list.files(generatedBaseFolder, recursive = TRUE)
currentFilenames <- list.files(generatedBaseFolder, recursive = TRUE)

"buildRelease() output matches current ddl folder"

buildRelease() output matches current ddl folder

`con <- connect(connectionDetails)` threw an unexpected error.
Message: Error: database name not included in server string but is required for PostgreSQL. Please specify server as <host>/<database>
Class:   rlang_error/error/condition

test_that(paste("Can connect to", dbms), {
test_that(paste("DDL", cdmVersion, "runs on", dbms), {
cdmTableCsvLoc <- system.file(file.path("csv", paste0("OMOP_CDMv", cdmVersion, "_Table_Level.csv")), package = "CommonDataModel", mustWork = TRUE)
tableSpecs <- read.csv(cdmTableCsvLoc, stringsAsFactors = FALSE)$cdmTableName
# check that the tables in the database match the tables in the specification

`disconnect(con)` threw an unexpected error.
Message: object 'con' not found
Class:   simpleError/error/condition

Error in `connectPostgreSql(connectionDetails)`: Error: database name not included in server string but is required for PostgreSQL. Please specify server as <host>/<database>