From f156940701ca2884219a5b23afb889b44638c229 Mon Sep 17 00:00:00 2001 From: Alex Coseru Date: Wed, 3 Mar 2021 16:43:05 +0200 Subject: [PATCH] Add explicit testing docs (#639) * Add explicit testing docs * Update README.md --- README.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d3933f43..d4a4cf23 100644 --- a/README.md +++ b/README.md @@ -111,12 +111,23 @@ Running all tests requires running Ocean Protocol components beforehand with [Ba ```bash git clone https://github.com/oceanprotocol/barge cd barge -git checkout v3 -./start_ocean.sh --no-dashboard +./start_ocean.sh --with-provider2 --no-dashboard ``` -You can then proceed to run in another terminal, executing linting, type checking, unit, and integration tests with coverage reporting all in one go: +You can then proceed to run in another terminal. + +Let ocean.js know where to pickup the smartcontract addresses: +``` +export ADDRESS_FILE="${HOME}/.ocean/ocean-contracts/artifacts/address.json" +``` + +Build metadata: +``` +npm run build +``` + +Executing linting, type checking, unit, and integration tests with coverage reporting all in one go: ```bash npm test