software-mansion / cairo-coverage

Code coverage tool for cairo
MIT License
16 stars 3 forks source link

Enhance User Project Identification #55

Closed ksew1 closed 2 months ago

ksew1 commented 2 months ago

In Cairo coverage, we utilize compilator mappings in the form:

Sierra ID -> list of details

where each detail is a triple representing:

Currently, we determine if a file belongs to the user project by excluding files that point to the Scarb cache. This method is unreliable as users can specify different locations for the cache via the SCARB_CACHE environment variable, and cache locations vary across different operating systems.

To fix this, we should: