documentation:software:whiterabbit:test_framework
This is an old revision of the document!
Table of Contents
Rabbit-In-a-Hat testing framework
Rabbit-In-a-Hat can generate a framework for creating a set of unit tests. The framework consists of a set of R functions tailored to the source and target schema in your ETL. These functions can then be used to define the unit tests.
Overview
These are the steps to perform unit testing:
- Create the testing framework for your source and target database schemas.
- Using the schema, define a set of unit tests
- Use the framework to generate testing data in the source data schema
- Run your ETL on the test data to produce data in the CDM schema
- Use the framework to evaluate whether the CDM data meets the defined expectations
Creating the testing framework
In Rabbit-in-a-Hat, have your ETL specifications open. The source data schema should be loaded from the White-Rabbit scan report, and the target data schema should be selected (usually the OMOP CDM v5). Go to File → Generate ETL Test Framework, and use a file name with the .R extension.
documentation/software/whiterabbit/test_framework.1464863756.txt.gz · Last modified: by schuemie
