Skip to content

Commit

Permalink
simplify test run
Browse files Browse the repository at this point in the history
  • Loading branch information
clemsos committed Apr 23, 2024
1 parent 7c38479 commit 16ea998
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,21 @@ yarn test

## Development

For development, you need a fully provisioned ETH node (with the Unlock contracts deployed and set correctly) and a subgraph indexing correctly. You can use scripts from our [`scripts`](../scripts) folder (at the root of the repo) to kickstart a fully configured instance of the protocol, either dockerized or directly from your local repo.
First start a fully provisioned ETH node (with the Unlock contracts deployed and set correctly) and a subgraph indexing correctly.

NB: the ETH node [provisioning script](../docker/development/eth-node/scripts/provision.ts) will create a few locks and purchase some keys.

#### Boostrap dev env locally

Run deployment and provisioning from your local machine (usually faster)

```shell
sh ../scripts/run-stack-local.sh
```
yarn start:infra
```

#### Boostrap dev env dockerized
then you nneed to export the subgraph URL, rebuild the networks package and run the test

```shell
sh ../scripts/run-stack-dockerized.sh
```
export SUBGRAPH_URL=http://localhost:8000/subgraphs/name/testgraph

#### Run test suite for development
# add localhost to networks package
yarn test:prepare

Run the tests against the newly deployed instance of the protocol

```
# run actual test against local eth/subgraph nodes
yarn test --network localhost
```

Expand Down

0 comments on commit 16ea998

Please sign in to comment.