Skip to content

Conversation

@LeoPatOZ
Copy link
Collaborator

Towards #7

The idea of the PR is to slowly introduce integration tests (i.e.e test that validate against real nodes).

This is more of a POC to see if we like this design.

One issue is that there is no standard way to mine blocks on this testnet so we are limited to fresh chains.

Questions:
Should we use shadow fork mode so we can get 'real' data i.e. real blocks / events

This would mean we could test more real life scenarios however we would have missed out on some edge case testing around genesis height testing.

Still missing:

  1. WS tests
  2. CI tests
  3. Deploying contract and getting real event logs?

- Move integration tests from inline #[cfg(test)] modules to tests/ folder:
  - tests/common.rs - shared test utilities
  - tests/eth_namespace.rs - Ethereum RPC method tests
  - tests/custom_methods.rs - RobustProvider-specific method tests
  - tests/subscription.rs - WebSocket subscription tests
- Keep internal unit tests in src/robust_provider/provider.rs (retry logic)
- Export additional types needed by tests (DEFAULT_FINALIZATION_HEIGHT,
  SubscriptionError, RobustSubscriptionStream)
@LeoPatOZ LeoPatOZ requested a review from 0xNeshi as a code owner January 15, 2026 11:41
@LeoPatOZ LeoPatOZ requested a review from pepebndc as a code owner January 15, 2026 11:41
@LeoPatOZ LeoPatOZ marked this pull request as draft January 15, 2026 11:41
Base automatically changed from restructure-tests to main January 15, 2026 12:00
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