Skip to content

Coverage emits 0% LCOV for transitive TS deps, causing duplicate/incorrect merged coverage #2349

@CMadden8

Description

@CMadden8

Please provide the environment you discovered this bug in.

NX Angular Windows.

Which area/package is the issue in?

create-analog

Description

#2296

I refer to the above issue raised in relation to this topic.

This problem is not solved.

There is a major issue somewhere that should be possible to reproduce by looking at the raw lcov data that's created.

And even the HTML reports that are generated from these.

There are massive amounts of incorrectly mapped code.

I'm testing on v2.5.2, where the previous fix was applied. I can confirm it does not work.

We built a custom plugin that fixes the mappings. It looks like something like this needs to be part of the AnalogJS library for storybook.

From what I have seen, it adds minimal overhead. So it's not causing any longer build times for CI.

However it is essential.

Please provide the exception or error you saw


Other information

No response

I would be willing to submit a PR to fix this issue

  • Yes
  • No

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions