lambdaclass / foundry-zksync

Apache License 2.0
5 stars 1 forks source link

[FEATURE] Functional zkforge test #14

Open Carolina-Pinheiro opened 1 year ago

Carolina-Pinheiro commented 1 year ago

🚀 Feature

Implementation of foundry tests.

Motivation

The test capabilities of foundry are, in my opinion, one of the best features compared to hardhat. Having foundry tests in foundry-zksync would be extremely helpful to any developer.

Implementation

It seems like this feature is already a WIP, the command zkforge test can be run but the Rust implementation is pointing to a specific contract (a Greeter contract). Ideally the implementation would just be to complete this, assuming that the foundry testing already works with the Greeter contract.

Additional context

zkforge test pointing to the greeter contract: image

mationorato commented 1 year ago

Hey! Yes, this feature is on WIP right now. It's a complex feature, because we need to plug a special version of the zkevm into the foundry codebase, but it is something that we need to do in order for this project to be really useful.