status-go/e2e
Ivan Tomilov 21beb685b4 Add -network flag for Makefile to chose a network to run tests on #430
PR adds test flag -network to e2e pacakge, for the selection of the desired blockchain network for running tests. It updates readme to demonstrates usage of flag.
2017-10-26 22:51:04 +03:00
..
accounts Add -network flag for Makefile to chose a network to run tests on #430 2017-10-26 22:51:04 +03:00
api Update makefiles and make changes regards review 2017-10-26 14:11:24 +01:00
jail Add -network flag for Makefile to chose a network to run tests on #430 2017-10-26 22:51:04 +03:00
node Remove unnecessary return 2017-10-26 22:36:45 +03:00
rpc Remove unnecessary return 2017-10-26 22:36:45 +03:00
transactions Add -network flag for Makefile to chose a network to run tests on #430 2017-10-26 22:51:04 +03:00
whisper Add -network flag for Makefile to chose a network to run tests on #430 2017-10-26 22:51:04 +03:00
README.md Update regards review 2017-10-25 23:07:50 +01:00
suites.go Add -network flag for Makefile to chose a network to run tests on #430 2017-10-26 22:51:04 +03:00
testing.go Update readme and update code for testing 2017-10-24 11:23:53 +01:00

README.md

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.

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

To use the ropsten network for testing using network name:

go test -v ./e2e/... -network=ropsten

To use the rinkeby network with chain id 4 for testing:

go test -v ./e2e/... -network=4

Run

make test-e2e