From f724476ed67ba7fad32776317586b5ded4460294 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Wed, 7 Aug 2024 09:25:30 -0600 Subject: [PATCH] tweak instructions for minimal test data --- README.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b2d71e9bd..92ba190de 100644 --- a/README.md +++ b/README.md @@ -71,20 +71,26 @@ npm run build ### Automated -At the test server: +Using the global test Endorser (ledger) server: `npx playwright test` -At the locally running server: +Using the locally running Endorser server: -* Clone and set up https://github.com/trentlarson/endorser-ch and run the following: +* Clone and set up https://github.com/trentlarson/endorser-ch and run the following in that directory: +``` +test/test.sh +NODE_ENV=test-local npm run dev +``` + +Alternatively, you can run the following which starts with the bare minimum test data: ``` rm ../endorser-ch-test-local.sqlite3 NODE_ENV=test-local npm run flyway migrate -# The following seeds with data from tests. To seed with the bare minimum, run this instead: NODE_ENV=test-local npm run test test/controller0 -test/test.sh +NODE_ENV=test-local npm run test test/controller0 NODE_ENV=test-local npm run dev ``` + * Now run the local tests: ``` npx playwright test -c playwright.config-local.ts