From 8174da147d494c01298ac2978545f445411ee6c7 Mon Sep 17 00:00:00 2001 From: sotmorskiy Date: Mon, 05 Oct 2020 10:21:54 +0000 Subject: [PATCH] NFTPAR-95: SIT: Acceptance documentation. --- --- /dev/null +++ b/tests/README @@ -0,0 +1,12 @@ +# Tests + +## How to run + +1. Run `npm install`. +2. Setup a test node. You can do it using `docker-compose up -d` in parent directory. +3. Configure tests with env variables or by editing [configuration file](src/config.ts). +4. Run `npm run test`. + +## Don't run on the same node twice + +Some tests fail when ran on the same blockchain node twice. Either always use a new node or purge the existing one with `nft purge-chain --dev`. There is also [a script](../purge-running-node.sh) to purge and restart a node, started with docker-compose. -- gitstuff