forked from jsnbuchanan/crowd-funder-for-time-pwa
tweak instructions for minimal test data
This commit is contained in:
18
README.md
18
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:
|
||||
```
|
||||
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 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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user