From 3d7526a282eb681b5dab1e60a028cdb391fb7ec0 Mon Sep 17 00:00:00 2001 From: Jamie Hewitt Date: Wed, 21 Apr 2021 11:58:27 +0300 Subject: [PATCH] Issue 92 readme improvements (#93) * adding testing section to readme * updating barge instructions * removing subgraph from commit --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1801902..59bf66b 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ - [🧶 Example Queries](#-example-queries) - [🦑 Development](#-development) - [🦑 Development on barge](#-development-on-barge) +- [🧪 Testing](#-testing) - [✨ Code Style](#-code-style) - [🛳 Releases](#️-releases) - [⬆️ Deployment](#️-deployment) @@ -106,11 +107,15 @@ You now have a local graph-node running and can start deploying your changes to ## 🦑 Development on Barge -Run barge in another terminal +Clone (barge)[https://github.com/oceanprotocol/barge] and run it in another terminal: ```bash +git clone https://github.com/oceanprotocol/barge.git +cd barge ./start_ocean.sh --with-thegraph ``` +If you have cloned Barge previously, make sure you are using the latest version by running `git pull`. + Clone the repo and install dependencies: ```bash @@ -133,6 +138,16 @@ npm run deploy:local-barge You now have a local graph-node running on http://localhost:9000 +## 🧪 Testing + +- Please note: the `npm run test` command is currently not working due to (this issue)[https://github.com/graphprotocol/graph-ts/issues/113]. + +To run the integration tests locally, first start up barge by following the instructions above, then run the following terminal commands from the ocean-subgraph folder: + +```Bash +export ADDRESS_FILE="${HOME}/.ocean/ocean-contracts/artifacts/address.json" +npm run test-integration +``` ## ✨ Code Style