Skip to content

Add e2e config startup tests#142

Open
benthecarman wants to merge 2 commits intolightningdevkit:mainfrom
benthecarman:config-tests
Open

Add e2e config startup tests#142
benthecarman wants to merge 2 commits intolightningdevkit:mainfrom
benthecarman:config-tests

Conversation

@benthecarman
Copy link
Collaborator

Continuation of #128 / #113

Refactor the e2e test infrastructure to support pluggable chain source. Existing tests now randomly pick between bitcoind RPC, electrum, and esplora backends for broader coverage. Also add config test suite that verifies server startup with various config combinations (to prevent things like #129) and validates errors for invalid configs.

benthecarman and others added 2 commits March 3, 2026 17:09
Add electrsd and rand dependencies to run real electrs processes in
tests. Tests now randomly pick between bitcoind RPC, electrum, and
esplora as the chain source for broader coverage.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Test server startup with various config settings: optional fields,
log levels, TLS hosts, LSPS2 variations, and bitcoind RPC with
localhost hostname. Add negative tests for invalid configs ensuring
proper error messages. Dedicated chain source tests verify each
backend explicitly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Mar 3, 2026

I've assigned @jkczyz as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@ldk-reviews-bot ldk-reviews-bot requested a review from jkczyz March 3, 2026 23:25
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

Successfully merging this pull request may close these issues.

2 participants