documentation:software:whiterabbit:test_framework
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| documentation:software:whiterabbit:test_framework [2017/08/17 13:11] – schuemie | documentation:software:whiterabbit:test_framework [2020/02/18 14:13] (current) – maximmoinat | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Rabbit-In-a-Hat testing framework ====== | ====== Rabbit-In-a-Hat testing framework ====== | ||
| + | |||
| + | **NOTICE FEB 2020:** the current documentation can be found on Github | ||
| + | http:// | ||
| + | |||
| Rabbit-In-a-Hat can generate a framework for creating a set of [[https:// | Rabbit-In-a-Hat can generate a framework for creating a set of [[https:// | ||
| Line 75: | Line 79: | ||
| After we have defined all our tests we need to run | After we have defined all our tests we need to run | ||
| < | < | ||
| - | insertSql <- generateInsertSql() | + | insertSql <- generateInsertSql(databaseSchema = " |
| + | testSql <- generateTestSql(databaseSchema = " | ||
| </ | </ | ||
| - | to generate the SQL for inserting the test data in the database. The SQL assumes that the data schema already exists, and will first remove any records that might be in the tables. We can execute the SQL in any SQL client, or we can use OHDSI' | + | to generate the SQL for inserting the test data in the database |
| < | < | ||
| Line 87: | Line 92: | ||
| connection <- connect(connectionDetails) | connection <- connect(connectionDetails) | ||
| - | executeSql(connection, | ||
| executeSql(connection, | executeSql(connection, | ||
| </ | </ | ||
| Line 93: | Line 97: | ||
| ==== Run your ETL on the test data ==== | ==== Run your ETL on the test data ==== | ||
| - | Now that the test source data is populated. You can run the ETL process you would like to test. | + | Now that the test source data is populated. You can run the ETL process you would like to test. The ETL should transform the data in '' |
| ==== Test whether the CDM data meets expectations ==== | ==== Test whether the CDM data meets expectations ==== | ||
| - | Automatically a variable called '' | + | The test SQL will create a table called '' |
| < | < | ||
| - | executeSql(connection, | ||
| executeSql(connection, | executeSql(connection, | ||
| </ | </ | ||
documentation/software/whiterabbit/test_framework.1502975497.txt.gz · Last modified: by schuemie
