Add mockgen dependency on the Readme to run make ci (#533)

This commit is contained in:
Adrià Cidre 2018-01-04 17:04:40 +01:00 committed by Adam Babik
parent ece5e367f6
commit d71c66a243
1 changed files with 19 additions and 3 deletions

View File

@ -31,9 +31,25 @@ Use following Makefile commands:
# Testing # Testing
To setup accounts passphrase you need to setup an environment variable: `export ACCOUNT_PASSWORD="secret_pass_phrase"`. To setup accounts passphrase you need to setup an environment variable: `export ACCOUNT_PASSWORD="secret_pass_phrase"`.
To test statusgo, use: `make ci`. Make sure the `gometalinter` package is installed first by running `make lint-install` Make sure the dependencies are installed first by running:
To test statusgo using a giving network by name, use: `make ci networkid=rinkeby`. ```
To test statusgo using a giving network by id number, use: `make ci networkid=3`. make lint-install
make mock-install
```
To test fully statusgo, use:
```
make ci
```
To test statusgo using a given network by name, use:
```
make ci networkid=rinkeby
```
To test statusgo using a given network by number ID, use:
```
make ci networkid=3
```
If you want to launch specific test, for instance `RPCSendTransactions`, use the following command: If you want to launch specific test, for instance `RPCSendTransactions`, use the following command:
``` ```