Browse Source

tweak instructions for minimal test data

playwright-pwa-install-test
Trent Larson 1 month ago
parent
commit
f724476ed6
  1. 16
      README.md

16
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

Loading…
Cancel
Save