-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcli.feature
30 lines (23 loc) · 1.02 KB
/
cli.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# SPDX-FileCopyrightText: Copyright (c) 2025 Yegor Bugayenko
# SPDX-License-Identifier: MIT
Feature: Command Line Processing
As a simple ETH/ERC20 user I want to send payments
Scenario: Help can be printed
When I run bin/erc20 with "--help"
Then Exit code is zero
And Stdout contains "--help"
Scenario: Gas price price can be retrieved
When I run bin/erc20 with "price --attempts=4"
Then Exit code is zero
Scenario: ETH private key can be generated
When I run bin/erc20 with "key"
Then Exit code is zero
Scenario: ETH address can be created
When I run bin/erc20 with "address 46feba063e9b59a8ae0dba68abd39a3cb8f52089e776576d6eb1bb5bfec123d1"
Then Exit code is zero
Scenario: ERC20 balance can be checked
When I run bin/erc20 with "balance 0x7232148927F8a580053792f44D4d59d40Fd00ABD --verbose"
Then Exit code is zero
Scenario: ETH balance can be checked
When I run bin/erc20 with "eth_balance 0x7232148927F8a580053792f44D4d59d40Fd00ABD --verbose"
Then Exit code is zero