Skip to content

Can no longer get NYC to use absolute paths in lcov.info #1277

@solymosi

Description

@solymosi

File paths in lcov.info used to be absolute before 15.0.0. This has changed in the following PRs:

It looks like these PRs do such a good job of "adding support for relative path option" that they remove the possibility to use absolute paths altogether, since this.cwd is now always set as the projectRoot for the lcovonly module, which uses path.relative without the option to turn this feature off.

Is there some way to continue using absolute paths in lcov.info?
If this would need changes in the code, I'm happy to prepare a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions