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.
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.
Resources:
Prerequisites
Sub-Tasks
/trials
endpoint.Notes