Repository navigation
Integration tests - #17
Conversation
|
Yeah, I was thinking about something like that. I wonder if we can get rid of needing bitcoind for internal test to make it faster. I think it should be possible (using I also intend to make end-to-end test using lnpbp-testkit and multiple nodes (that part is not yet supportd in the testkit but planned) |
|
Not sure to follow you, you don't want bitcoind for faster tests but do you want to make end-to-end test using lnpbp-testkit and multiple nodes? Anyway, at the moment the integration test takes 5 seconds, consider also that every other integration test could run in parallel spawning its own node. |
|
My thinking is to run end-to-end tests less often (e.g. in CI but not locally during development).
Wow, that's impressive! I thought it'd take much longer to download bitcoind binary, launch it, compile the code and do all other stuff. What kind of black magic is that?
Yep, that's fine. |
I am not considering compile time and referring to the second launch, the binary is cached in cargo home and not downloaded again if present |
808d783 to
5071737
Compare
yes, i reduced bitcoind MSRV with rust-bitcoin/bitcoind#25, will revisit this one once I release bitcoind |
5071737 to
53c340c
Compare
Kixunil
left a comment
There was a problem hiding this comment.
Looks good. I will need to take time to learn implications of using core-rpc before merging.
On top of #13 see only cf81501Adds an integration test using bitcoind regtest as backend for payjoin receiver and sender using the implementation provided by the lib itself (the receiver part isn't finished since the library hasn't that part yet)
Note it uses my crate bitcoind which is a helper to spawn bitcoind processes