Edit this page

Back-end testing

Automated back-end tests.

TO BE WRITTEN

Notes:

If setting up a fresh database, a single group and a link to that group must be set up. This requires adding a new group taxonomy then manually adding a line to the 'inscape_links' table of the db. e.g.

UPDATE inscape_links SET tenantId = 2 where id = 1;

Alternatively, a fresh database snapshot is included here. Just download, put in the db_snapshots directory of .ddev and run

ddev snapshot restore

A gzipped mysql file has also been included here if that's easier. ddev import-db -f="{file location}"

Ensure the ddev config is set up for a different domain to the local testing one (if you have one) You can then run ddev and ddev share to get the back-end running, running against (e.g.) https://fusion-tester.ddev.site/ You can also set the dashboard to run against this to check any front-end functionality using npm run start:tester

COURTNEY TO UPDATE THESE DOCS and probably migrate them to wiki once complete