foundry-rs / starknet-foundry

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

Revamp test collector failure output #1612

Closed Arcticae closed 7 months ago

Arcticae commented 7 months ago

Which components does the task require to be changed? (think hard pls)

snforge

Description

We should try to improve the error message so it's easier for the user to make sense of it

Image

piotmag769 commented 7 months ago

https://github.com/starkware-libs/cairo/blob/afdf61af33d1ca742c81201b188adc8e8d53e78d/crates/cairo-lang-test-runner/src/lib.rs#L138 It is what cairo-test uses to format panic messages, they look much better this way