Instrument Remix app code #2284
Replies: 4 comments 1 reply
-
@nicholaschiang, tried to make it work for some hours, too, but found the some problems you had. |
Beta Was this translation helpful? Give feedback.
-
In 2024 is there a way to do this? Would like to get coverage out of playwright. Everywhere I look the answer seems to be |
Beta Was this translation helpful? Give feedback.
-
Hi, I am also in the same situation, I would like to have a code coverage report (with playwright). |
Beta Was this translation helpful? Give feedback.
-
Here is a example to generate code coverage for Remix |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm writing Cypress integration tests and want to track my tests' code coverage. Previously, I've relied on
babel-plugin-istanbul
andnyc
to generate code coverage reports (that are then sent, during CI, to a service like CodeCov), but that doesn't seem possible with Remix as it usesesbuild
to compile everything.@mjackson @ryanflorence I've looked over some of your past example apps (e.g.
remix-ecommerce
,jokes-app
, etc) and while many of them use Cypress for integration testing, none of them (that I could find) track code coverage. Is there an accepted way to do so?I've also taken a look at the
esbuild
issues and found a couple (e.g. #516, #184) that are relevant but don't provide any solutions (besides asserting that instrumenting code is beyond the scope ofesbuild
and thus isn't planned on being supported anytime soon... which is unfortunate because using Remix seems like a lock-in toesbuild
and thus a lock-out of code coverage tracking). 😭Beta Was this translation helpful? Give feedback.
All reactions