Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Latest commit

 

History

History
41 lines (32 loc) · 788 Bytes

TESTING.md

File metadata and controls

41 lines (32 loc) · 788 Bytes

Testing

Manual

Add the following functions to your ~/.zshrc file. This will enable you to type bm and tm to launch fresh instances of Bearmint and Tendermint.

function bm() {
    rm -rf ~/.bearmint/data
    node ~/Work/bearmint/examples/bear/genesis-node.mjs
    node ~/Work/bearmint/examples/bear/app.mjs
}

function tm() {
    tendermint unsafe-reset-all
    tendermint start
}

E2E

Prepare the environment

# Delete existing configurations
rm -rf ~/.bearmint
rm -rf ~/.tendermint
# Generate new configurations
node examples/bear/genesis-node.mjs
# Launch Bearmint (separate CLI instance)
node examples/bear/app.mjs
# Launch Tendermint (separate CLI instance)
tendermint start

Execute a test

cd packages/bep55
pnpm run test:e2e