sensei icon indicating copy to clipboard operation
sensei copied to clipboard

testing

Open johncantrell97 opened this issue 3 years ago • 6 comments

there is NO testing to be found. I think a good first pass would be to get some kind of end-to-end integration test running so that we can at least be a little confident things generally work before pushing updates.

need to think of how to best do this but I imagine it involves spinning up bitcoind/electrum/handful of sensei nodes and controlling them via api.

i think bdk has some infrastructure in place for this, worth researching their setup more.

johncantrell97 avatar Feb 08 '22 01:02 johncantrell97

GuN wallet would be a good project to look at, they do exactly that for gun wallet (which uses bdk) https://gun.fun

keblek avatar Feb 26 '22 18:02 keblek

might be helpful for this https://github.com/RCasatta/bitcoind

orbitalturtle avatar Apr 13 '22 01:04 orbitalturtle

Nigiri just added lightning! And also it has a --ci flag for running headless in a github action. https://github.com/vulpemventures/nigiri

futurepaul avatar Apr 22 '22 13:04 futurepaul

oh that's pretty cool, seems useful for testing for sure. need to get sensei support in nigiri :)

johncantrell97 avatar Apr 22 '22 14:04 johncantrell97

We're on it! https://github.com/vulpemventures/nigiri/pull/151

Now that I've got some confidence in using the CLI, should be pretty straightforward to get merged.

THEN! We can switch gears to our conformance testing suite.

litch avatar Apr 25 '22 12:04 litch

working on an integration "smoke test" that runs in rust using bitcoind crate. it will exercise the AdminService and NodeService directly without needing to use the http/grpc apis. can be run without having to manually set up any external dependencies.

My plan is to use cypress to run e2e test against the web-admin which will be slower but exercise the web-admin, http api, and of course the inner services. this will need bitcoind + senseid running -- probably need a docker-compose file setup for this.

johncantrell97 avatar May 18 '22 02:05 johncantrell97