From 16ea9983153a709972155668931354b3223665f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renaud?= Date: Thu, 21 Mar 2024 12:49:33 +0100 Subject: [PATCH] simplify test run --- tests/README.md | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/tests/README.md b/tests/README.md index 4037b2c7dfd2..0c339d578668 100644 --- a/tests/README.md +++ b/tests/README.md @@ -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 ```