OHDSI / CohortGenerator

An R package for instantiating cohorts using data in the CDM.
https://ohdsi.github.io/CohortGenerator/
11 stars 10 forks source link

Basic tests for different database platforms #71

Closed azimov closed 1 year ago

azimov commented 1 year ago

This PR adds simple testing for database platforms. Note that this is deliberately not extensive as the cohort generation can take a long time to run.

Added function for loading specific tests for each database platform including randomized table names to prevent test collisions.

Also moved some global variables from helpers.R to setup.R as use of helpers with devtools::load_all() pollutes the global namespace with these variables.

codecov[bot] commented 1 year ago

Codecov Report

Merging #71 (c718a81) into develop (7a0454c) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff            @@
##           develop      #71   +/-   ##
========================================
  Coverage    99.00%   99.00%           
========================================
  Files            9        9           
  Lines          701      703    +2     
========================================
+ Hits           694      696    +2     
  Misses           7        7           
Impacted Files Coverage Δ
R/CohortTables.R 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

azimov commented 1 year ago

Can't figure out why windows tests are failing - github actions error?