Questions tagged [coverage]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

Error in plugin solidity-coverage: TypeError: Cannot read properties of undefined (reading 'match')

when running yarn hardhat coverage, it compiled the solidity files successfully and then gave the following error message: Error in plugin solidity-coverage: TypeError: Cannot read properties of ...
Liron Achdut's user avatar
0 votes
1 answer
148 views

Force foundry to ignore contracts during a coverage report

Right now, in foundry, if I run my coverage report, sometimes it'll include my mocks, which I don't want. Example: | File | % Lines | % ...
Patrick Collins's user avatar
3 votes
1 answer
285 views

solidity-coverage giving wrong report

The first time I ran npx hardhat coverage it hadn't removed the files that should be ignored and I got this result, which is correct. But after I added this to .solcover.js: module.exports = { ...
n3n3's user avatar
  • 608
7 votes
1 answer
1k views

What is the % Branch column for in solidity-coverage?

In the solidity-coverage package output, there is a column called % Branch, what is it for? yarn hardhat coverage Output: ---------------------------|----------|----------|----------|----------|------...
Patrick Collins's user avatar
2 votes
1 answer
1k views

solidity-coverage error

I want to make code coverage for my project. I installed the solidity-coverage from this page: https://github.com/sc-forks/solidity-coverage and then ran this command in truffle : truffle run ...
sollover's user avatar
  • 115
2 votes
1 answer
133 views

Truffle: how to override compiler settings via the CLI?

This is a highly specific bottleneck encountered when using Truffle. In my normal truffle-config.js file, I have the optimizer enabled. I run a CI pipeline which has a coverage job. I use 0x/sol-...
Paul Razvan Berg's user avatar
4 votes
1 answer
340 views

solidity-coverage adds extra events which make unit-test fail

It seems that when using the latest solidity-coverage (0.5.11), truffle (5.0.0-next.25) ganache-cli (6.2.4-beta.1) and solc (0.5.0) additional events / logs are emitted during tests which make the ...
Stef Heyenrath's user avatar