Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update readme with tests #6

Merged
merged 1 commit into from
Feb 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 35 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,41 @@ If you have already built the TezEdge node from sources, you can skip these step

## Build and run

First thing should be reading the included help to help undirstand the options the terminal UI can run with
```
cargo run --release -- -h
```

To connect to the default localhost node with default port in the default mode (without baker-address specified):

```
cargo run --release
```

If you are running a baking and endorsing stack with the TezEdge node, you can specify your tezos account as baker address
```
cargo run --release -- --baker-address tz1iFzuDWaP7eKbdBgmcdtz5FAJzDuQqcucm
```

To connect to our test run with TezEdge and baker/endorser:
```
cargo run --release -- --node http://mempool.tezedge.com:18732/ --websocket ws://mempool.tezedge.com:4927/ --baker-address tz1Mkb2MQyHnVybEru6iTgTGQaZikyg4fBhr
```
- First thing should be reading the included help to help undirstand the options the terminal UI can run with
```
cargo run --release -- -h
```

- To connect to the default localhost node with default port in the default mode (without baker-address specified):
```
cargo run --release
```

- If you are running a baking and endorsing stack with the TezEdge node, you can specify your tezos account as baker address
```
cargo run --release -- --baker-address tz1iFzuDWaP7eKbdBgmcdtz5FAJzDuQqcucm
```

- To connect to our test run with TezEdge and baker/endorser:
```
cargo run --release -- --node http://mempool.tezedge.com:18732/ --websocket ws://mempool.tezedge.com:4927/ --baker-address tz1Mkb2MQyHnVybEru6iTgTGQaZikyg4fBhr
```

## Test

Test the tezedge tui statemachine

1. Record actions
```
cargo run --release -- --baker-address tz1iFzuDWaP7eKbdBgmcdtz5FAJzDuQqcucm --record-actions
```
This will create an automaton_dump.json file in the root directory

2. Run the test
```
cargo test -- --nocapture
```


## Shortcuts

Expand Down