Enable Users to see Code Coverage on expaned code #49
Labels
enhancement
New feature or request
Scarb
Should be done in Scarb
Starknet Foundry
Should be done in Starknet Foundry
We should allow users to run coverage on expanded code, especially to see coverage for macros that might contain conditional statements and thus can be not fully covered. We can approach this in three ways, ranked from the easiest to the most complicated:
Proposed Solutions:
Ask users to run
scarb expand
on their own and input it to Cairo coveragescarb expand
and then input the expanded code into Cairo coverage tool.Add
--expand
flag to Forgescarb expand
behind the scenes and then pass the output to Cairo-coverage. This process will be automated for the user.Change mappings in the compiler to also point to expanded lines
Additional Requirements:
The text was updated successfully, but these errors were encountered: