fix linting, and give instructions for current test suite

This commit is contained in:
2024-08-10 13:37:31 -06:00
parent 5ad933f1c6
commit a001f2fde3
4 changed files with 24 additions and 17 deletions

View File

@@ -71,10 +71,7 @@ npm run build
### Automated
Using the global test Endorser (ledger) server:
`npx playwright test`
Using the locally running Endorser server:
Use the locally running Endorser server:
* Clone and set up https://github.com/trentlarson/endorser-ch and run the following in that directory:
```
@@ -82,7 +79,23 @@ test/test.sh
NODE_ENV=test-local npm run dev
```
Alternatively, you can run the following which starts with the bare minimum test data:
* Now run the local tests:
```
npm run test-all
```
Note that a test will sometimes fail and rerunning may succeed (and repeat if a different test fails).
It's possible to use the global test Endorser (ledger) server (but currently the tests don't all succeed):
`npx playwright test`
It's possible to run with a minimal set of data: the following starts with the bare minimum of test data (but currently the tests don't all succeed):
```
rm ../endorser-ch-test-local.sqlite3
NODE_ENV=test-local npm run flyway migrate
@@ -91,11 +104,6 @@ NODE_ENV=test-local npm run dev
```
* Now run the local tests:
```
npx playwright test -c playwright.config-local.ts
```
### Register new user on test server
On the test server, User #0 has rights to register others, so you can start