Test Coverage with Istanbul #9134
Replies: 2 comments 3 replies
-
This is really interesting, I didn't know that was actually a thing - have you tried it / what errors/output dyou get? |
Beta Was this translation helpful? Give feedback.
-
I was able to get back-end coverage using Istanbul's nyc https://github.com/istanbuljs/nyc Basically, I run the whole playwright wrapped by nyc like this: I'm not a remix expert, I don't work directly with the team that builds that particular app, but they have an odd setup, their entry server.js file is importing the built remix bundle, for the source maps to be interpreted correctly I needed to specify both source and build folders as entries to istanbul. Here is my .nycrc file:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am aware of this previous discussion: #2284
However it seems like things have changed since then.
Since Remix has embraced vite, I was hoping vite-plugin-istanbul could be used to instrument a remix app in order to get coverage results when testing with playwright.
I can't find any documentation anywhere to do such a thing. Is there still some inherent reason why this won't work?
Beta Was this translation helpful? Give feedback.
All reactions