From 639208b7c63773c1a3ce8776e113e84259579726 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Wed, 30 Sep 2020 13:15:46 +0200 Subject: [PATCH] Document running Ledger tests --- packages/launchpad-ledger/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/packages/launchpad-ledger/README.md b/packages/launchpad-ledger/README.md index 671258cf..7929748a 100644 --- a/packages/launchpad-ledger/README.md +++ b/packages/launchpad-ledger/README.md @@ -53,6 +53,25 @@ http://localhost:8000/demo. Then follow the instructions on that page. +## Runnng tests + +The tests in this package require a Ledger device initialized with the mnemonic +from +[scripts/wasmd/README.md#preset-accounts](https://github.com/CosmWasm/cosmjs/blob/master/scripts/wasmd/README.md#preset-accounts) +(see "Ledger: accounts for Ledger based demos and tests") with an installed +"Cosmos (ATOM)" app. The device must be connected via USB, unlocked and the +Cosmos app must be opened. The tests require the user to manually approve +transactions. Start a local wasmd blockchain as described in +[scripts/wasmd/README.md](https://github.com/CosmWasm/cosmjs/blob/master/scripts/wasmd/README.md) +and execute: + +```sh +export LEDGER_INTERACTIVE_ENABLED=1 +export LEDGER_ENABLED=1 +export WASMD_ENABLED=1 +yarn test +``` + ## License This package is part of the cosmjs repository, licensed under the Apache License