Questions tagged [solidity-coverage]
The solidity-coverage tag has no usage guidance.
7
questions
0
votes
0
answers
21
views
Signature Verification Errors in solidity-coverage
I am currently creating a test for signatures, and it runs fine with truffle, but with solidity-coverage I get the following error...
ECDSA: invalid signature 'v' value
I checked the ethereum-js ...
0
votes
0
answers
20
views
solidity-coverage : configure to ignore files
I have a helper contract that is used only for testing. I don't want it picked up by coverage and showing in coverage results. I want to exclude it somehow.
This link basically says the only option is ...
0
votes
0
answers
26
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 = {
...
5
votes
1
answer
288
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:
---------------------------|----------|----------|----------|----------|------...
1
vote
1
answer
96
views
Solidity coverage report , need help as a beginner
I have a NFT project in truffle for which I have written some tests but need to make a "coverage report".
I have no knowledge how to go about it .
Is there any reading material or any posts ...
1
vote
0
answers
229
views
Silence visibility warning, state mutability can be restricted to pure
Suppose I have an interface:
pragma solidity 0.7.6;
interface Foo {
function foo() public view returns(bool);
}
And a simplistic implementation like a mock:
contract Bar is Foo {
function foo() ...
1
vote
0
answers
108
views
Running solidity-coverage via a buidler plugin on a project using openzeppelin/test-environment yields 0% coverage
I have a project where I would like to check test coverage for the Solidity Smart Contracts. I am using solidity-coverage via a buidler plugin and the test coverage is always 0%. The output from the ...