eigerco / beerus

A stateless trustless Starknet light client in Rust 🦀
MIT License
250 stars 88 forks source link

test: starkli declare workflow in test #730

Closed ICavlek closed 2 months ago

ICavlek commented 3 months ago

Create integration test with mock starknet node where beerus requests are going to simulate starkli declare workflow function calls:

ICavlek commented 2 months ago

It has been decided that mock tests are redundant.

sergey-melnychuk commented 2 months ago

Mocks may be not as redundant as I thought actually. For the external contributor flow, GitHub doesn't propagate repository secrets (in order not to leak them, this is expected). But in practice it means that no PR from external contributors can run integration tests properly.

In such case mock tests might be the way to go - hermetic check of request/response invariants.