lightningdevkit.org icon indicating copy to clipboard operation
lightningdevkit.org copied to clipboard

Writing tests for interactions with LDK

Open ConorOkus opened this issue 4 years ago • 1 comments

We should look to create a dedicated section on testing.

Currently, it's difficult to write tests for things like opening channels as it requires a second node.

Some things we might include in this section:

  • Testing overview, tradeoffs, recommended testing tools
  • Testing recipes, common patterns for testing with LDK
  • Testing environments, mocking functions, mocking modules

ConorOkus avatar Jul 15 '21 21:07 ConorOkus

You might be interested in doing a system test, such as this one for lnrod: https://gitlab.com/lightning-signer/lnrod/-/blob/master/tests/integration-test.py

Note also the Docker method of launching that, at top level of the repo.

devrandom avatar Jul 16 '21 06:07 devrandom