How to Run Adapter Regression Tests

This article provides technical background and documents the steps for running the adapter regression tests.

Framework

The regression tests depend on sample Common Data Model (CDM) databases for SQL Server, Postgres and Oracle. The tests only use the CDM for data and do not modify the database.

The tests use the test queries stored under the Resources folder for input and the results are compared against the expected results in the same folders. Each query has a matching result file and are JSON formatted.

Steps

  1. Restore the CDM databases containing sample data https://popmednet.atlassian.net/wiki/spaces/DOC/pages/3060105217 .

  2. Load the PopMedNet.Adapters.AcceptanceTests solution in Visual Studio.

  3. Make a copy of the ConnectionStrings.template to ConnectionStrings.config.

  4. Modify ConnectionStrings.config. You may comment out any database type you do not want to test.

  5. Right click on the solution to build.

  6. Right click on PopMedNet.Adapters.AcceptanceTests to run the tests.