User Tools

Site Tools


development:unit_testing_in_r

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
development:unit_testing_in_r [2015/06/30 03:24]
schuemie
development:unit_testing_in_r [2015/06/30 03:31] (current)
schuemie
Line 32: Line 32:
   * Add **- ./​travis-tool.sh install_github jimhester/​covr** to the **install** section   * Add **- ./​travis-tool.sh install_github jimhester/​covr** to the **install** section
   * Add **- Rscript -e '​library(covr);​codecov()'​** to the **after_success** section ​   * Add **- Rscript -e '​library(covr);​codecov()'​** to the **after_success** section ​
 +
 +==== Testing functions requiring database access ====
 +
 +On the OHDSI Jenkins server there are 6 databases that can be accessed from within a unit test, for the 3 main platforms (SQL Server, Oracle, PostgreSQL),​ and the two main versions of the [[documentation:​cdm|Common Data Model]] (versions 4 and 5). To access the databases locally, you'll need to specify several environmental variables. These environmental variables should also be available on the [[OHDSI Travis CI Server]].
 +
 +Some example code in the DatabaseConnector package can be found  [[https://​github.com/​OHDSI/​DatabaseConnector/​blob/​master/​tests/​testthat/​test-connection.R|here]].
development/unit_testing_in_r.txt ยท Last modified: 2015/06/30 03:31 by schuemie