Skip to content

Commit

Permalink
skip test with unset variables
Browse files Browse the repository at this point in the history
  • Loading branch information
azimov committed Aug 14, 2024
1 parent e2e5c14 commit 2c1a710
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
7 changes: 5 additions & 2 deletions tests/testOracle.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
library(testthat)
options(dbms = "oracle")
test_check("CohortDiagnostics")

if (Sys.getenv("CDM5_ORACLE_SERVER") != "") {
options(dbms = "oracle")
test_check("CohortDiagnostics")
}
7 changes: 5 additions & 2 deletions tests/testPostgres.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
library(testthat)
options(dbms = "postgresql")
test_check("CohortDiagnostics")

if (Sys.getenv("CDM5_POSTGRESQL_SERVER") != "") {
options(dbms = "postgresql")
test_check("CohortDiagnostics")
}
7 changes: 5 additions & 2 deletions tests/testRedshift.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
library(testthat)
options(dbms = "redshift")
test_check("CohortDiagnostics")

if (Sys.getenv("CDM5_REDSHIFT_SERVER") != "") {
options(dbms = "redshift")
test_check("CohortDiagnostics")
}
7 changes: 5 additions & 2 deletions tests/testSqlServer.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
library(testthat)
options(dbms = "sql server")
test_check("CohortDiagnostics")

if (Sys.getenv("CDM5_SQL_SERVER_SERVER") != "") {
options(dbms = "sql server")
test_check("CohortDiagnostics")
}

0 comments on commit 2c1a710

Please sign in to comment.