foundry-rs / starknet-foundry

Blazing fast toolkit for developing Starknet contracts.
https://foundry-rs.github.io/starknet-foundry/
MIT License
279 stars 139 forks source link

Forge refactor (preparation for new config logic) #2179

Closed Draggu closed 3 weeks ago

Draggu commented 4 weeks ago

related #1905

Introduced changes

This is only refactor, for easier implementing of new forge attribute defined config logic, so logic is not mixed with moving code around (this is necessary as currently there is no easy way to change this) in one PR

Test cases are now i 3 flavours

raw - produced by scarb with_config - enriched with test case config (this will be done in separate run after #1905) with_config_resolved - final one where config from Scarb.toml is resolved (i.e. #[fork("name")] is translated to url and block_id etc.)

some functions are moved to keep it consistent

running workspace -> running package -> running test target (src/ or tests/) -> running single test case