Improve validation for Scarb Version and Scarb.toml Configuration for Forge Backtrace #2710
Labels
feature
New feature request/description
help wanted
odboost: Medium
ODBoost
snforge debugging
snforge
Which component is your feature related to?
Forge
Feature Request
Currently, when annotations are missing, we return the following error:
starknet-foundry/crates/forge-runner/src/backtrace.rs
Line 86 in 8ce451e
We should display a more descriptive message that clearly explains what is wrong. The message should be similar in approach to what the
coverage
functionality displays:starknet-foundry/crates/forge-runner/src/coverage_api.rs
Line 70 in 5bbfa80
To achieve this, two new functions should be added to the backtrace file:
These functions should then be invoked in the following function:
starknet-foundry/crates/forge/src/run_tests/workspace.rs
Line 22 in 8ce451e
Definition of Done:
BACKTRACE_ENV=1
will validate the Scarb version andScarb.toml
configuration.The text was updated successfully, but these errors were encountered: