leapdao / leap-sandbox

Local Leap Network / Integration Tests
3 stars 3 forks source link

feat: allow to run tests on warm env #70

Closed troggy closed 4 years ago

troggy commented 4 years ago

Resolves #68

See README in this PR for details

Run tests on a warm env

  1. Start a local env with yarn start
  2. In a separate terminal run tests or a single test e.g. yarn test 8_breeding

Run pre-warmed root chain

  1. yarn start --onlyRoot starts only ganache with plasma contracts
  2. In a separate terminal yarn start or yarn test will do the thing by starting only a leap-node
troggy commented 4 years ago

@vrde you may be interested to review this one. See README for usage

TLDR:

yarn start --onlyRoot in the first terminal and keep it. yarn start in a second terminal and you can keep restarting it (restarts only leap-node)