question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Coverage reports do not cover all contracts

See original GitHub issue

Environment information

  • brownie Version: 1.14.6
  • solc Version: 8.0.0
  • Python Version: 3.8.5
  • OS: linux

What was wrong?

Please include information like:

I have 3 contracts that work in interaction with each others.

My testing script is on one file.

When I run brownie test --coverage I get a coverage report for only one of the contracts. I’d like to get it for all of the contracts.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:10
  • Comments:8

github_iconTop GitHub Comments

6reactions
Psirexcommented, Jul 13, 2021

I found, that it happens with contracts that use the immutable modifier. Maybe because of this:

“The contract creation code generated by the compiler will modify the contract’s runtime code before it is returned by replacing all references to immutables by the values assigned to them. This is important if you are comparing the runtime code generated by the compiler with the one actually stored in the blockchain.”

as mentioned in the docs here. But I’m not sure that it’s the only reason which causes such behavior.

0reactions
Bulalucommented, Nov 22, 2022

still having the same issue 😢

Read more comments on GitHub >

github_iconTop Results From Across the Web

Part 30 - Cost Accounting Standards Administration
(1) Include all affected CAS-covered contracts and subcontracts regardless of their status (i.e., open or closed) or the fiscal year in which the...
Read more >
Understanding Your Insurance Policy
All–risk coverage, under which all losses are covered except those losses specifically excluded. If the loss is not excluded, then it is covered....
Read more >
Coverage Evaluation — Brownie 1.19.2 documentation
During coverage analysis, all contract calls are executed as transactions. This gives a more accurate coverage picture by allowing analysis of methods that...
Read more >
SCA Coverage & Exemptions - U.S. Department of Labor
SCA does not apply to the following: Contracts for construction of public buildings or public works covered by DBA; PCA work required by...
Read more >
Questions and Answers on Reporting of Offers of Health ... - IRS
Information reporting under section 6056 was first required with respect to coverage offered (or not offered) in 2015.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found