Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Cobertura reporter makes non valid method when using v8 coverage #927

Closed
jehy opened this issue Feb 11, 2020 · 1 comment
Closed

Cobertura reporter makes non valid method when using v8 coverage #927

jehy opened this issue Feb 11, 2020 · 1 comment

Comments

@jehy
Copy link

jehy commented Feb 11, 2020

If you use Node 12 or 13 and v8 coverage provider, istanbul generates wrong method names, including non valid < and > characters, like this:

<method name="map.<computed>.f" hits="1" signature="()V">

Bug can be reproduced with jest and with c8:
jestjs/jest#9561
bcoe/c8#149

I can try to provide a minimal example, but it seems like a simple fix would be to replace <> with &lt; and &gt;.

@jehy
Copy link
Author

jehy commented Feb 11, 2020

Sorry, wrong repo, actual issue here: istanbuljs/istanbuljs#527
Why is issues section open on a deprecated repo? oO

@jehy jehy closed this as completed Feb 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant