solidity icon indicating copy to clipboard operation
solidity copied to clipboard

How get coverage for solidity compiler?

Open Subway2023 opened this issue 1 year ago • 1 comments

Abstract

I switch OFF to ON before compile solidity coverage switch.

When I used afl cov in conjunction with solc to test coverage, the following error occurred:

image

May I ask what the reason is? Why does Solc not support coverage detection, or how can we detect Solc's coverage?

Subway2023 avatar Apr 26 '24 02:04 Subway2023

There is no .gcno file after compiling Solidity compiler with the coverage switch ON. And, there is no .gcda file after executing solc.

Subway2023 avatar Apr 26 '24 04:04 Subway2023

This issue has been marked as stale due to inactivity for the last 90 days. It will be automatically closed in 7 days.

github-actions[bot] avatar Jul 25 '24 12:07 github-actions[bot]

Hi everyone! This issue has been automatically closed due to inactivity. If you think this issue is still relevant in the latest Solidity version and you have something to contribute, feel free to reopen. However, unless the issue is a concrete proposal that can be implemented, we recommend starting a language discussion on the forum instead.

github-actions[bot] avatar Aug 01 '24 12:08 github-actions[bot]