mirror of
https://github.com/status-im/status-go.git
synced 2025-02-08 21:04:27 +00:00
We have a test called TestJailWhisper that checks various Whisper communication scenarios (like sending a message signed with a symmetric key, asymmetric keys etc.). However, it was written in a bit cryptic way, so I also refactored it. Important changes: * Cleaner way of importing keys using AddKeyPair() method in the test suite, * Removed TestEncryptedAnonymousMessage because it is not needed anymore as "test 4" in TestJailWhisper was fixed, * Bumped PoW to 2.0. 0.01 used by status-react makes this test flaky.
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