Skip to content

Cannot run coverage on imported contracts from node_modules #376

Open
@alecps

Description

@alecps

Currently, you can only run coverage on custom contracts located in the /contracts directory and not on any npm installed contracts that are inherited by the custom contracts. Some developers need to demonstrate full test coverage for all smart contracts used in their projects, including those in node_modules. However, it is also considered bad practice to move npm installed contracts out of node modules and into the /contracts directory alongside custom contracts. There should be an option to configure .solcover.js to instrument all inherited contracts including those in node_modules.

I've suggested a solution for this in PR #375

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