foundry-rs / foundry-rs/foundry
Avoid recompiling every test that uses local Vm
Open
A-internals
A-testing
T-debt
- Dominant language
- Rust
- Stars
- 10.6k
- Forks
- 2.6k
- Avg merge
- 18h 20m
- Merged PRs (30d)
- 510
Description
### Component
Forge
### Describe the feature you would like
many tests in forge now use
```rust
prj.wipe_contracts();
prj.insert_ds_test();
prj.insert_vm();
prj.clear();
```
this clears the cache of the pre-compiled test project, which ruins the purpose of the forgetest_init macro, as well as making tests depend on ds-test which we have removed from forge-std long ago
we can surgically replace the forge-std Vm with the local one to have access to all the cheatcodes, or some other way so that we don't have to do this
cc @grandizzy
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.