2024-09-25 13:57:55 +00:00
|
|
|
# Run CLI tests
|
2024-03-21 11:19:14 +00:00
|
|
|
|
|
|
|
* Follow the project `Setup` and `Account Setup` from root [README](./../README.md)
|
|
|
|
|
|
|
|
* Add laconic cmd to path
|
|
|
|
|
|
|
|
```bash
|
|
|
|
export PATH="$PWD/bin:$PATH"
|
|
|
|
```
|
|
|
|
|
|
|
|
* Create a .env file using [.env.example](./.env.example):
|
|
|
|
|
|
|
|
```bash
|
|
|
|
cp .env.example .env
|
|
|
|
```
|
|
|
|
|
|
|
|
* Get account address of test account:
|
|
|
|
|
|
|
|
```bash
|
2024-04-02 13:25:31 +00:00
|
|
|
laconicd keys list --keyring-backend test
|
2024-03-21 11:19:14 +00:00
|
|
|
|
|
|
|
# - address: laconic10er85pyd7ukw732e88fzv7k0jq205764hye2dx
|
|
|
|
# name: alice
|
|
|
|
# pubkey: '{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AsDoWlNIr3W013pOiwmopaB/SaWQj6r3g56xb2d9GxYK"}'
|
|
|
|
# type: local
|
|
|
|
```
|
|
|
|
|
|
|
|
Use the `address` field from the result and assign it in `TEST_ACCOUNT` field of `.env` file
|
|
|
|
|
|
|
|
* Run CLI tests:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
yarn test
|
|
|
|
```
|