foundry-rs / foundry-rs/foundry

feat: enable cache for forge coverage in `out/coverage`

Open
#4,522 9 comments 0 reactions 0 assignees View on GitHub
A-compiler A-config C-forge Cmd-forge-coverage T-feature T-perf
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

I'd like the build step in the coverage command to cache the contracts.
`forge test` does, but `forge coverage` does not. I understand there is a difference in how the contracts are built between `forge test` & `forge coverage`, so it's fine to have separate caches, but it'd be very helpful to have a cache here.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.