15
15
# limitations under the License.
16
16
17
17
for (nm in names(testServers )) {
18
- nm <- " sqlite "
18
+ # nm <- "duckdb "
19
19
server <- testServers [[nm ]]
20
20
21
21
# Params
@@ -33,17 +33,18 @@ for (nm in names(testServers)) {
33
33
cohortTableNames <- CohortGenerator :: getCohortTableNames(cohortTable = server $ cohortTable )
34
34
cohortDatabaseSchema <- server $ cohortDatabaseSchema
35
35
cohortTable <- server $ cohortTable
36
- incremental <- FALSE
37
- # incremental <- TRUE
36
+ # incremental <- FALSE
37
+ incremental <- TRUE
38
38
conceptIdTable <- " #concept_ids"
39
+ recordKeepingFile <- file.path(exportFolder , " record.csv" )
39
40
40
41
# Tests
41
42
42
43
test_that(paste(" test run inclusion statistics output" , nm ), {
43
44
connection <- DatabaseConnector :: connect(server $ connectionDetails )
44
- exportFolder <- file.path(tempdir(), paste0(nm , " no_concept" ))
45
- dir.create(exportFolder )
45
+ exportFolder <- file.path(tempdir(), paste0(nm , " _no_concept" ))
46
46
recordKeepingFile <- file.path(exportFolder , " record.csv" )
47
+ dir.create(exportFolder )
47
48
# CreateConceptcounts table
48
49
49
50
CohortDiagnostics :: createConceptCountsTable(connection = connection ,
@@ -125,6 +126,7 @@ for (nm in names(testServers)) {
125
126
test_that(paste(" test run inclusion statistics output" , nm ), {
126
127
connection <- DatabaseConnector :: connect(server $ connectionDetails )
127
128
exportFolder <- file.path(tempdir(), paste0(nm , " _no_concept" ))
129
+ recordKeepingFile <- file.path(exportFolder , " record.csv" )
128
130
dir.create(exportFolder )
129
131
130
132
# Instantiate Unique ConceptSets
@@ -178,6 +180,6 @@ for (nm in names(testServers)) {
178
180
expect_equal(unique(recordKeeping $ task ), " runOrphanConcepts" )
179
181
expect_true(all(recordKeeping $ cohortId %in% server $ cohortDefinitionSet $ cohortId ))
180
182
181
- unlink(exportFolder )
183
+ unlink(exportFolder , recursive = TRUE )
182
184
})
183
185
}
0 commit comments