1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

Add explicit testing docs (#639)

* Add explicit testing docs

* Update README.md
This commit is contained in:
Alex Coseru 2021-03-03 16:43:05 +02:00 committed by GitHub
parent 9a832dc9b7
commit f156940701
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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