NCIOCPL / clinical-trials-search-print

Print service for clinical trial search
0 stars 1 forks source link

Enabler: Add Integration Tests #87

Open blairlearn opened 2 years ago

blairlearn commented 2 years ago

Add Integration tests

The system currently lacks any end-to-end tests aside from a few for bad inputs.

Using the live API is undesirable as the data changes daily. To work around this, we can create a mock API (Node with Express?) backed by a small number of static files containing trial data as returned by the current API. At present, only the /trials endpoint needs to be mocked.

SQL Server (for storing printable pages) may also present some challenges.

ESTIMATE TBD

Resources:

Prerequisites

Sub-Tasks

Notes