Skip to content
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

Wallet End to end tests #14

Open
kirillzh opened this issue Jun 29, 2024 · 1 comment
Open

Wallet End to end tests #14

kirillzh opened this issue Jun 29, 2024 · 1 comment

Comments

@kirillzh
Copy link
Contributor

It would be very helpful if we had tests that run through end to end flows for the Wallet - sending, receiving ecash, minting, melting.

We could fake out mint endpoints or spin out a real one locally that runs on signet/regtest.

@thunderbiscuit, curious if you have thoughts on this?

@thunderbiscuit
Copy link
Owner

Would love this @kirillzh!

When I took a quick look at doing this a while back, there were a ton of little issues that required a bit more time than I had. We could build a whole regtest setup in a Podman/Docker container, but note that it requires a few nodes + a whole lightning setup, and then the cashu mint on top.

The testnet cashu mints out there in the wild are not always up-to-date with the spec (sometimes it's the lib that's behind!), and in the case of the default standard test mint maintained by Calle the ln payments are just mocked and always "succeed" without actually sending any sats over the lightning testnet. Not optimal for end to end testing.

I personally use Podman for Regtest (check out this blog post for more info) and that's a decent start but it would need to be beefed up a ton. Happy to hear other suggestions as well! (but it's a bit outside my priority list at the moment so I don't want to promise too much on my end).

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

No branches or pull requests

2 participants