-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
istanbul code coverage generation plugin #9248
Comments
That sounds like a good third-party plugin. |
Absolutely, I just think that the parcel eco-system as a whole would benefit from this feature. So the awareness on the parcel side makes sense to me.
I was trying to instrument a react / typescript / es-next module application. I've added the transformer as last step to the tsx transformer pipeline. The instrumentation failed in some deep recursive stack in the istanbul code traversal with a meaningless "can't turn this into a node" failure. I know this is not parcels responsibility. |
That transformer plugin should work.
Try putting it at the start of the pipeline instead.
No, we already have quite few people working on Parcel itself. |
Putting it to the start causes Istanbul to fail at the first typescript specific code segment (in my case a generic type) |
🙋 feature request
A transformer plugin that instruments the build to record code coverage in an istanbul.js compatible format
🤔 Expected Behavior
include via .parcelrc transformer section
😯 Current Behavior
not present
💁 Possible Solution
After some local trials, the istanbul-lib-instrumentation transformer always fails with a
don't know how to turn this value into a node
error. I've not found any other library so far for code coverage augmentation.🔦 Context
I'm trying to augment a react/typescript/esnext application to retrieve code coverage information during runtime.
💻 Examples
The text was updated successfully, but these errors were encountered: