Skip to content

test: Expand payjoin cli integration test coverage - #136

Open
ValeraFinebits wants to merge 3 commits into
masterfrom
test/Expand-payjoin-cli-integration-test-coverage
Open

test: Expand payjoin cli integration test coverage#136
ValeraFinebits wants to merge 3 commits into
masterfrom
test/Expand-payjoin-cli-integration-test-coverage

Conversation

@ValeraFinebits

Copy link
Copy Markdown
Owner

This PR is based on #129 and should be merged only after #129.

Summary

Expands payjoin-cli integration coverage and moves integration tests into a dedicated CI workflow.

  • Covers relay failures, closed invoices, cold-wallet change, confirmation flow, and session expiry.
  • Verifies persisted sender sessions through history, resume, and cancellation commands.
  • Improves CLI test diagnostics and transaction detection.
  • Ensures PayjoinReceiverPoller shuts down cleanly while waiting for its next tick.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Expands payjoin-cli integration coverage and isolates integration tests into the CI workflow introduced by dependency PR #129.

Changes:

  • Adds CLI scenarios for relay failures, invoice states, cold-wallet change, confirmations, expiry, and persisted sessions.
  • Improves CLI diagnostics, transaction detection, and test helpers.
  • Ensures receiver poller cancellation completes cleanly.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
PayjoinReceiverPoller.cs Handles cancellation while awaiting timer ticks.
PayjoinReceiverPollerTests.cs Verifies poller shutdown completion.
PayjoinReceiverTestHelper.cs Returns close-requested session state.
PayjoinInvoiceTestHelper.cs Strengthens invoice transition assertions.
PayjoinCliPayer.cs Adds CLI session commands and diagnostics.
PayjoinCliIntegrationTestSupport.cs Verifies persisted successful sessions.
PayjoinCliIntegrationTests.cs Adds expanded CLI integration scenarios.
.github/workflows/package.yml Pins updated workflow actions.
.github/workflows/integration.yml Adds scheduled/manual integration CI.
.github/workflows/codeql.yml Pins updated CodeQL actions.
.github/workflows/build.yml Restricts standard CI to unit tests.
.github/actions/prepare-ci-build/action.yml Pins build-setup actions.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ValeraFinebits
ValeraFinebits force-pushed the test/Expand-payjoin-cli-integration-test-coverage branch 2 times, most recently from 47a0db5 to 49efcce Compare August 15, 2026 14:56
@ValeraFinebits
ValeraFinebits force-pushed the test/Expand-payjoin-cli-integration-test-coverage branch from c48c5fa to 9be69af Compare August 15, 2026 15:28
@ValeraFinebits
ValeraFinebits marked this pull request as ready for review August 15, 2026 15:40
@ValeraFinebits
ValeraFinebits requested a review from chavic August 15, 2026 15:40
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