Skip to content

Windows compatibility #15

@elenev

Description

@elenev

If I understand it correctly, right now this package isn't compatible with Windows because there's no windows version of LCOV. And trying to run the genhtml Perl script runs into errors because of Windows paths.

Locally, I've gotten around this by installing LCOV in WSL. Then, it's two lines of code:

First, I replace the slashes in lcov.info:
run(`bash -c "tr '\\\\' '/' < coverage/lcov.info > coverage/lcov.info.tmp && mv coverage/lcov.info.tmp coverage/lcov.info"`)

Next, I call genhtml:
run(`bash -c "genhtml -t "Test" -o coverage coverage/lcov.info"`)

It's very much a hack, but if people think it's useful, maybe it's worth a PR? Or is there a much simpler solution I'm missing? I didn't want to change genhtml's Perl code...

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