2017-10-11 14:20:51 +00:00
|
|
|
e2e
|
|
|
|
===
|
|
|
|
|
|
|
|
This package contains all e2e tests divided into subpackages which represents (or should represent) business domains like transactions, chat etc.
|
|
|
|
|
|
|
|
These tests are run against public testnets: Ropsten and Rinkeby.
|
|
|
|
|
|
|
|
e2e package contains a few utilities which are described in a [godoc](https://godoc.org/github.com/status-im/status-go/e2e).
|
|
|
|
|
2017-10-23 16:03:07 +00:00
|
|
|
### Flags
|
|
|
|
|
|
|
|
#### 1. `-network`
|
|
|
|
The `-network` flag is used to provide either a network id or network name which specifies the ethereum network to use
|
|
|
|
for running all test. It by default uses the `StatusChain` network.
|
|
|
|
|
|
|
|
#### Usage
|
|
|
|
|
2017-10-24 10:23:53 +00:00
|
|
|
To use the `ropsten` network for testing using network name:
|
2017-10-23 16:03:07 +00:00
|
|
|
|
|
|
|
```bash
|
2017-10-25 22:07:50 +00:00
|
|
|
go test -v ./e2e/... -network=ropsten
|
2017-10-23 16:03:07 +00:00
|
|
|
```
|
|
|
|
|
2017-10-25 22:07:50 +00:00
|
|
|
To use the `rinkeby` network with chain id `4` for testing:
|
2017-10-23 16:03:07 +00:00
|
|
|
|
|
|
|
```bash
|
2017-10-24 10:23:53 +00:00
|
|
|
go test -v ./e2e/... -network=4
|
2017-10-23 16:03:07 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
2017-10-11 14:20:51 +00:00
|
|
|
## Run
|
|
|
|
|
|
|
|
`make test-e2e`
|