You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Include BDK integration tests in rust-payjoin #741
Currently rust-payjoin uses bitcoind for integration tests, and payjoin-ffi uses BDK for its integration tests.
Instead, we can ensure compatibility with BDK by including it in tests at the rust-payjoin library level, and use simple bitcoind tests to test each binding layer.
We just need to bring in the BDK test from payjoin-ffi into rust-payjoin. After #790 we will no longer really need to test the payjoin-ffi wrappers directly, instead we can just have integration tests in each generated language.
I think it's beneficial to test BDK integration in the core rust-payjoin library since it's so commonly used in Rust projects, but for language bindings the tests are really just there to prove that the bindings work as intended and to provide example usage, so IMO it's fine to just use bitcoind for these.
payjoin shipping with bdk as a feature has come up in conversation with both users and bdk contributors more than a few times. It's a big bundle, but one that seems to have demand. post-1.0 I can see that being viable. That's where these integration tests belong, probably not in rust-payjoin since I imagine it's a big dev-dep to bring in. If this passes the smell test maybe it's time to convert this to a discussion and tag the BDK guys starting with @luisschwab about the viability of such a move.
This is the type of move that's a cool project for someone cutting their teeth since it's beyond bots and it requires adept social manouvering across multiple teams, as well as the actual engineering to get the integration tests making the right trade-off between safety and convenience for the BDK team. There might be info to learn about testing at other integration touchpoints too (cc @benalleng for the QA topic, NOT suggesting you take this on rn)
proposal: title switch "How to test BDK and rust-payjoin compatibility for potential bundling" and move to discussion
This should perhaps live on a payjoin-bdk/bdk-payjoin repo where you use a published version of bdk_wallet and payjoin as a git dep pointing to master. I think having this directly on the bdk_wallet repo would be a tough sell.
Activity
shinghim commentedon Jul 10, 2025
Does this mean duplicate the existing rust-payjoin tests that use bitcoind but for BDK, and vice versa for the binding layer tests?
spacebear21 commentedon Jul 10, 2025
We just need to bring in the BDK test from payjoin-ffi into rust-payjoin. After #790 we will no longer really need to test the
payjoin-ffiwrappers directly, instead we can just have integration tests in each generated language.I think it's beneficial to test BDK integration in the core rust-payjoin library since it's so commonly used in Rust projects, but for language bindings the tests are really just there to prove that the bindings work as intended and to provide example usage, so IMO it's fine to just use bitcoind for these.
DanGould commentedon May 6, 2026
payjoin shipping with bdk as a feature has come up in conversation with both users and bdk contributors more than a few times. It's a big bundle, but one that seems to have demand. post-1.0 I can see that being viable. That's where these integration tests belong, probably not in rust-payjoin since I imagine it's a big dev-dep to bring in. If this passes the smell test maybe it's time to convert this to a discussion and tag the BDK guys starting with @luisschwab about the viability of such a move.
This is the type of move that's a cool project for someone cutting their teeth since it's beyond bots and it requires adept social manouvering across multiple teams, as well as the actual engineering to get the integration tests making the right trade-off between safety and convenience for the BDK team. There might be info to learn about testing at other integration touchpoints too (cc @benalleng for the QA topic, NOT suggesting you take this on rn)
proposal: title switch "How to test BDK and rust-payjoin compatibility for potential bundling" and move to discussion
luisschwab commentedon May 11, 2026
This should perhaps live on a
payjoin-bdk/bdk-payjoinrepo where you use a published version ofbdk_walletandpayjoinas a git dep pointing to master. I think having this directly on thebdk_walletrepo would be a tough sell.