Skip to content

Commit

Permalink
docs: README on runnig load test
Browse files Browse the repository at this point in the history
  • Loading branch information
boolafish committed Nov 13, 2019
1 parent 4a2daec commit 2629658
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ npm install

You can then compile the contracts.
```
./node_modules/.bin/truffle compile
npx truffle compile
```

Or run the tests
```
./node_modules/.bin/truffle test
npm run test
```

## Configuration
Expand Down Expand Up @@ -97,3 +97,20 @@ Running slow (overnight) tests:
```
make runslow | tee raport.txt
```

### Run Load Tests
We have code for load tests but is skipped by default. Currently it needs manual setup to run it locally.
You should go to the `test/loadTests/` folder to find the test you would like to enable.
Remove the `.skip` on the test, and change it to `.only`.

The load test would need a ETH network with super high block gas limit and high initial ETH fund for test accounts. You can do the following with ganache:

```
ganache-cli -e 10000000000000 -l 0xfffffffffff
```

Run the following command to run the test afterward:

```
npx truffle test --network loadTest
```

0 comments on commit 2629658

Please sign in to comment.