tdex-network / tdex-daemon-alpha

💰 Alpha Daemon implementation to run automated market making strategies on top of TDEX
MIT License
0 stars 2 forks source link

End to end test #9

Closed tiero closed 4 years ago

tiero commented 4 years ago

This PR adds an end to end testing with some minor fixes discovered along the way of testing.

The most notable change is the introduction of a temporary ENV variable EXPLORER that lets you choose a different endpoint for your own electrs REST server. This need to be worked out in another way (passing it in the config.json would be better, but need some refactoring to allow this)

In this branch has been merged also fee-wallet-rpc branch needed by the e2e test and also the altafan/patch-proto branch to fix usage of proto stubs at compile time.

In order to do a complete end to end test in your local environment, you should have installed nigiri, you can download from here Nigiri CLI. The test script will stop and start for you automatically to have a clean version of it.

In the future, we will use nigiri-travis, not possible to set up a CI pipeline yet because of LiquidJS not being yet open-source (Although a temporary workaround could be to pass a Github Access Token in the dependency in the pkg.json to let Travis container download the private repository, comments/ideas are welcome on this @altafan)

It closes #8