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

Implement first E2E test in Haskell #4931

Open
Tracked by #4852
abailly opened this issue Jan 10, 2025 · 3 comments
Open
Tracked by #4852

Implement first E2E test in Haskell #4931

abailly opened this issue Jan 10, 2025 · 3 comments
Assignees

Comments

@abailly
Copy link
Collaborator

abailly commented Jan 10, 2025

  • Investigate whether to reuse or ditch existing E2E framework from Yura
  • Investigate reuse of integration tests to run against preprod (or any network)
  • Implement a first E2E test running against preprod using existing keys/wallets
  • Integrate E2E test run in CI
@abailly
Copy link
Collaborator Author

abailly commented Jan 10, 2025

This is needed for #4852

@abailly
Copy link
Collaborator Author

abailly commented Jan 13, 2025

I wonder if there aren't already tools we could leverage in the Cardano Haskell ecosystem.

@Anviking Anviking self-assigned this Jan 13, 2025
@Anviking
Copy link
Member

Creating a preprod Context for cardano-wallet-integration looked to be fairly straight-forward to me. wallet-e2e looks kind of cool though (+ already seems to support both local testnet and preprod). I wonder if one could translate between the two somehow, for potential incremental migration…

Not sure what kind of other tool in the ecosystem we could use. Found https://github.com/IntersectMBO/antaeus but appears to not support preprod and to be focused on Haskell APIs.

github-merge-queue bot pushed a commit that referenced this issue Jan 15, 2025
Ensure we can run:

```bash
just e2e-preprod          (10s 383ms)
nix shell '.#cardano-node' '.#cardano-wallet' '.#cardano-wallet-e2e' -c wallet-e2e preprod -s lib/wallet-e2e/test-state/preprod -c lib/wallet-e2e/config/cardano-node/preprod -t lib/wallet-e2e/test-output/preprod
Writing node logs to /Users/anviking/IOHK/cardano-wallet/lib/wallet-e2e/test-state/preprod/node/node.log
Tests:

Wallet Backend API
Writing wallet logs to /Users/anviking/IOHK/cardano-wallet/lib/wallet-e2e/test-state/preprod/wallet/wallet.log
Node sync progress: 100.0%
Node status as reported by wallet: ready
  ✓ Created wallet is listed                                             336.02 ms
  ✓ Created wallet can be retrieved by id                                220.81 ms
  ✓ Created wallet has zero ADA balance                                  253.46 ms
Effect interpreters
  Timeouts
    ✓ no timeout                                                         901.68 ms
    ✓ timeout in 10 milliseconds                                        1002.10 ms

  Passed:                       5
  Failed:                       0
  Sum of test runtimes:         2.71 seconds
  Test suite took:             58.47 seconds
```

#4931
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