LimeChain / zest

Limechain Solana Code Coverage CLI
10 stars 2 forks source link

Error while executing llvm tools #3

Closed nickfrosty closed 6 days ago

nickfrosty commented 1 week ago

when running zest coverage I get the following error:

⠸ Aggregating coverage info...17:39:26 [ERROR] Error while executing llvm tools: We couldn't find llvm-profdata. Try installing the llvm-tools component with `rustup component add llvm-tools-preview` or specifying the --llvm-path option.

Suggested changes

I recommend adding information into the readme install section about the llvm tools and how to install them. Maybe at least recommending developers install them by default?

edit: if possible, it would be great if the first step after running zest coverage (which displays the message "Toolchain installed!" would also handle installing these tools if needed?

related: when these llvm tools are not installed, all the success checkmark for "Coverage aggregated!" is also misleading since it appears to not actually perform any of the coverage tests