Skip to content

Solidity Coverage returns 0% #7

Closed
@jeffywu

Description

@jeffywu

I've been using this as a repo for my solidity project and it's been really helpful. Saw that solidity-coverage was added here but it returns 0% for me when I run it. Getting the same issue with the setup in my project as well. Wonder if you guys got it working?

> server:            http://127.0.0.1:8555
> ganache-core:      v2.8.0
> solidity-coverage: v0.7.1

Network Info
============
> port:    8555
> network: soliditycoverage


Instrumenting for coverage...
=============================

> Counter.sol
Compiling...
Downloading compiler version 0.6.2
Compiled 2 contracts successfully
All contracts have already been compiled, skipping compilation.


  Counter
    count up
      ✓ should count up (277ms)
    count down
      ✓ should fail (1051ms)
      ✓ should count down (188ms)


  3 passing (2s)

--------------|----------|----------|----------|----------|----------------|
File          |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |
--------------|----------|----------|----------|----------|----------------|
 contracts/   |        0 |        0 |        0 |        0 |                |
  Counter.sol |        0 |        0 |        0 |        0 |... 28,30,32,33 |
--------------|----------|----------|----------|----------|----------------|
All files     |        0 |        0 |        0 |        0 |                |
--------------|----------|----------|----------|----------|----------------|

> Istanbul reports written to ./coverage/ and ./coverage.json
> solidity-coverage cleaning up, shutting down ganache server

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions