Skip to content

Commit

Permalink
Update README.md (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov authored Nov 5, 2024
1 parent 1982e72 commit b04211d
Showing 1 changed file with 24 additions and 17 deletions.
41 changes: 24 additions & 17 deletions integration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,37 @@ These integration tests currently available for Goerli testnet must run as non-r
# Requirements

```
% pip3 install -r requirements.txt
pip3 install -r requirements.txt
```

Currently, `json-diff` and `json-patch-jsondiff` are also required:

## Linux
```
% sudo apt update
% sudo apt install npm
% npm install -g json-diff
sudo apt update
sudo apt install npm
npm install -g json-diff
% sudo apt install python3-jsonpatch
sudo apt install python3-jsonpatch
```

## macOS
```
% brew update
% brew install node
% npm install -g json-diff
brew update
brew install node
npm install -g json-diff
```

# Run tests

```
% python3 ./run_tests.py -c -k jwt.hex -b <chain>
python3 ./run_tests.py -c -k jwt.hex -b <chain>
```

# Synopsis

```
% python3 ./run_tests.py -h
python3 ./run_tests.py -h
Usage: ./run_tests.py:
Expand Down Expand Up @@ -70,38 +70,45 @@ Launch an automated test sequence on Silkworm RpcDaemon (aka Silkrpc) or Erigon
# Invoke examples

```
% ./run_tests.py -b mainnet -d -c -v 1
./run_tests.py -b mainnet -d -c -v 1
```

Runs all tests on main net chain comparing Silkrpc response with rpcdaemon response, printing each test result

```
% ./run_tests.py -b mainnet -c -v 1
./run_tests.py -b mainnet -c -v 1
```

Runs all tests on main net chain comparing silkrpc response to response saved on json file, printing each test result

```
% ./run_tests.py -b mainnet -c -a eth_call
./run_tests.py -b mainnet -c -a eth_call
```

Runs all tests of eth_call on main net chain comparing silkrpc response with saved json file, printing only failed tests

```
% ./run_tests.py -b mainnet -r -c -a eth_call -t 1
./run_tests.py -b mainnet -r -c -a eth_call -t 1
```

Runs test 1 of eth_call on main net chain comparing rpcdaemon response to saved json file, printing only failed tests

% ./run_tests.py -b mainnet -r -c -t 20 -v 1
```
./run_tests.py -b mainnet -r -c -t 20 -v 1
```

Runs test number 20 in main net chain using rpcdaemon and compare result with json file, printing each test result

% ./run_tests.py -b mainnet -d -c -X 20 -v 1
```
./run_tests.py -b mainnet -d -c -X 20 -v 1
```

Runs all tests (excluding test number 20) on main net chain comparing silkrpc response with rpcdaemon response, printing each test result

% ./run_tests.py -b mainnet -d -c -x eth_call -v 1
```
./run_tests.py -b mainnet -d -c -x eth_call -v 1
```


Runs all tests (excluding eth_call tests) on main net chain comparing silkrpc response with rpcdaemon response, printing each test result

0 comments on commit b04211d

Please sign in to comment.