Skip to content

Conversation

@piotr-iohk
Copy link
Collaborator

Description

Counterpart of synonymdev/bitkit-android#563

Linked Issues/Tasks

Screenshot / Video

Insert relevant screenshot / recording

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds the ability to configure E2E (end-to-end) test builds to use network-based Electrum backends and different Bitcoin networks (mainnet, testnet, signet, regtest) instead of being limited to local backends only. This provides more flexibility for running E2E tests in different environments.

Key changes:

  • Added E2E_BACKEND and E2E_NETWORK Info.plist keys that can be set via environment variables at build time
  • Implemented logic in Env.swift to read these configuration values and apply them to network and Electrum server selection
  • Updated documentation to explain how to use the new build-time configuration options

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
README.md Added documentation examples showing how to set E2E_BACKEND and E2E_NETWORK environment variables for different test scenarios
AGENTS.md Updated build instructions to include the new E2E configuration options with network backend example
Bitkit/Info.plist Added E2E_BACKEND and E2E_NETWORK keys for runtime configuration via build-time environment variable substitution
Bitkit/Constants/Env.swift Added infoPlistValue helper, e2eBackend and e2eNetwork properties, refactored network selection logic to support configurable E2E networks, and updated electrumServerUrl to conditionally use local backend

@piotr-iohk piotr-iohk requested a review from jvsena42 December 31, 2025 10:51
Copy link
Member

@jvsena42 jvsena42 left a comment

Choose a reason for hiding this comment

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

LGTM

@piotr-iohk piotr-iohk merged commit 384aad9 into master Jan 1, 2026
9 checks passed
@piotr-iohk piotr-iohk deleted the feat/e2e-beyond-local branch January 1, 2026 00:04
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.

3 participants