Connecting to the Testing dataset
- 1 Rationale
- 2 /test/testthat/connection_to_datasets/login_details.R
- 3 /test/testthat/connection_to_datasets/local_settings.csv
- 4 Functions provided by /test/testthat/connection_to_datasets/init_all_datasets.R
- 5 Functions provided by /test/testthat/connection_to_datasets/init_local_settings.R
- 6 Installing the DataSHIELD testing framework
Rationale
Some functions that connect to the testing data locally and remotely are provided. These functions initialise some variables of the ds.test_env environment, disconnect some existing connections and connects to the relevant testing table of the virtual machine.
These functions have been written with the following purpose:
The name of the function inform the developer about their purpose
Each function should be easy to use.
Each function complete one task at a time.
Each function promotes some code re-use
Each function enhances the maintenance of the testing framework.
The functions are grouped together based on their purpose, to promote a high cohesion and low coupling.
/test/testthat/connection_to_datasets/login_details.R
This R script sets many of the variables of the ds.test_env environment (see