Skip to content

Conversation

Copy link

Copilot AI commented Jan 29, 2026

Implements comprehensive Cucumber BDD integration testing covering wallet operations, blockchain scanning, transactions, and daemon mode.

Changes

  • Dependencies: Added cucumber 0.21, tempfile 3.15, serial_test 3.2
  • Feature Coverage (7 files, 30 scenarios):
    • Wallet creation/import with encryption variants
    • Balance queries and blockchain scanning (initial, incremental, re-scan)
    • Transaction creation and fund locking
    • Daemon mode with REST API operations
  • Test Infrastructure:
    • MinotariWorld context manager for isolated test state
    • Step definitions execute actual CLI commands in temporary environments
    • Sequential execution to prevent daemon port conflicts
  • Documentation: Testing guide with usage examples

Usage

cargo test --test integration_tests

Results

  • 29/30 scenarios passing (96.7%)
  • 135 steps executed
  • One failure identified real bug in seed words validation

Feature files use Gherkin syntax for human-readable specifications:

Scenario: Create a new wallet with password encryption
  Given I have a clean test environment
  When I create a new address with password "..."
  Then the wallet file should be created
  And the wallet should contain encrypted view key

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • esm.ubuntu.com
    • Triggering command: /usr/lib/apt/methods/https /usr/lib/apt/methods/https -Wl,-Bstatic /home/REDACTED/work/minotari-cli/minotari-cli/target/debug/deps/libwasm_bindgen_macro_support-75518661400250a0.rlib /home/REDACTED/work/minotari-cli/minotari-cli/target/debug/deps/libwasm_bindgen_backend-92168bbcaa0981f1.rlib /home/REDACTED/work/minotari-cli/minotari-cli/target/debug/deps/libbumpalo-587d5a790d81739c.rlib /home/REDACTED/work/minotari-cli/minotari-cli/target/debug/deps/libwasm_bindgen_shared-11f5f8ad80de2dd9.rlib /home/REDACTED/work/minotari-cli/minotari-cli/target/debug/deps/libsyn-d8f634bbe1c72013.rlib /home/REDACTED/work/minotari-cli/minotari-cli/target/debug/deps/libquote-46d554d7a9498c7e.rlib /home/REDACTED/work/minotari-cli/minotari-cli/target/debug/deps/libproc_macro2-e8ad3710843a5b44.rlib /home/REDACTED/work/minotari-cli/minotari-cli/target/debug/deps/libunicode_ident-b6534�� /home/REDACTED/.rustup/toolchains/stable-x86_64-REDACTED-linux-gnu/lib/rustlib/x86_64-REDACTED-linux-gnu/lib/libproc_macro-9bb76dbda537fcf7.rlib /home/REDACTED/.rustup/toolchains/stable-x86_64-REDACTED-linux-gnu/lib/rustlib/x86_64-REDACTED-linux-gnu/lib/librustc_literal_escaper-f22bf791d1c2fd7e.rlib lib/�� lib/rustlib/x86_/home/REDACTED/work/minotari-cli/minotari-cli/target/debug/deps/derivative-5ac54a1/usr/lib/apt/methods/http 0e37048718/build_script_build-6fe46c0e37048718 lib/rustlib/x86_64-REDACTED-linux-gnu/bin/rust-lld 7e.rlib d28b.rlib known-linux-gnu/-Wl,--no-undefined-version lib/rustlib/x86_-m64 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits January 29, 2026 11:32
Co-authored-by: SWvheerden <2579813+SWvheerden@users.noreply.github.com>
Co-authored-by: SWvheerden <2579813+SWvheerden@users.noreply.github.com>
Copilot AI changed the title [WIP] Add full integration testing suite for minotari_cli Add Cucumber BDD integration test suite Jan 29, 2026
Copilot AI requested a review from SWvheerden January 29, 2026 11:37
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