Skip to content

Cannot run beta on Windows #458

@steven-gong-aventus

Description

@steven-gong-aventus

Hi,

I got an issue when running coverage in windows:
truffle run coverage --network coverage

The coverage report shows 0% coverage for all contracts .sol file:

Error: Error: Could not find artifacts for LLibrary from any sources
    at Object.run (C:\Users\abc\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js?abc3:92:1)
    at process._tickCallback (internal/process/next_tick.js:68:7)
Truffle v5.1.0 (core: 5.1.0)
Node v10.16.3

All smart contracts under root/contracts/*.sol are annotated by the instrumentation except interfaces, and a coverage report within the root/migration/coverage folder.

I think this is caused by the truffle test not able to be executed.
However, if I just run:
truffle test
All the tests went through successfully.

Are there any configurations I should apply in .solcover.js?
I tried with just

module.exports = {
      norpc: true  
};

But doesn't help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions