Skip to content

Integration tests #46

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

Closed
wants to merge 18 commits into from
Closed

Conversation

shesek
Copy link
Collaborator

@shesek shesek commented Jan 18, 2022

  • Uses the fantastic bitcoind crate by @RCasatta to setup a bitcoind regtest environment

  • Currently supports Bitcoin mode only, Liquid support is up next (a similar elementsd crate exists to setup an elements regtest environment)

    Support for Liquid mode was added.

  • Currently covers the HTTP REST API (some basic tests for 14 endpoints) , testing the Electrum RPC server will be added later - either with electrum_client to test the RPC commands directly, or more fully e2e with an headless Electrum wallet (I did the later before for bwt)

    The tests now cover the Electrum RPC server too.

  • I'm also looking to later implement e2e tests for the Esplora client-side web UI, using something like cypress.

    Available here: End-to-end browser tests for the web ui (Cypress-based) esplora#362.

  • Running with JSONRPC_IMPORT=1 speeds up the initial indexing which can be useful for local development.

  • CI integration is still not implemented via Github Actions.

@shesek
Copy link
Collaborator Author

shesek commented Jan 20, 2022

Added e2e tests for the Electrum RPC server using the headless Electrum wallet daemon (96b7b0f).

@shesek shesek force-pushed the 202201-tests branch 3 times, most recently from 83b8b75 to 0ceea5c Compare January 20, 2022 22:39
@shesek
Copy link
Collaborator Author

shesek commented Jan 20, 2022

Added support for testing in Elements/Liquid mode in d62f582 and 25c7e9e, including tests for Elements-specific functionality: CT, asset issuance and signed dynafed blocks.

Next up are tests for the esplora web ui.

@shesek shesek force-pushed the 202201-tests branch 2 times, most recently from 7a20eb8 to 25c7e9e Compare January 21, 2022 00:48
@shesek
Copy link
Collaborator Author

shesek commented Jan 22, 2022

Implemented e2e browser tests for the esplora web ui in Blockstream/esplora#362.

@shesek
Copy link
Collaborator Author

shesek commented Apr 22, 2022

Rebased on top of #48.

And fix some compatibility issues with the changes introduced in
rust-bitcoin v0.28.
@shesek shesek force-pushed the 202201-tests branch 3 times, most recently from 98b8e71 to 1e65848 Compare June 11, 2022 00:04
@shesek
Copy link
Collaborator Author

shesek commented Jun 11, 2022

Added Github Actions CI and rebased on top of #48.

Lacking further review, I will go ahead and merge this once #48 is in.

@shesek
Copy link
Collaborator Author

shesek commented Aug 31, 2023

Reopened as #60.

@shesek shesek closed this Aug 31, 2023
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