Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Writing tests for interactions with LDK #52

Open
ConorOkus opened this issue Jul 15, 2021 · 1 comment
Open

Writing tests for interactions with LDK #52

ConorOkus opened this issue Jul 15, 2021 · 1 comment
Assignees

Comments

@ConorOkus
Copy link
Contributor

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
@devrandom
Copy link
Member

devrandom commented Jul 16, 2021

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.

@ConorOkus ConorOkus moved this to Todo in LDK Roadmap Nov 9, 2021
@ConorOkus ConorOkus added the documentation Improvements or additions to documentation label Nov 9, 2021
@ConorOkus ConorOkus removed the documentation Improvements or additions to documentation label Dec 3, 2021
@ConorOkus ConorOkus removed this from LDK Roadmap Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants