-
Notifications
You must be signed in to change notification settings - Fork 108
Description
I'm updating all my addons to be v2 and use vite for testing (no separate ember test app 🥳).
However, that makes code coverage to stop working, as it is tightly coupled to ember-cli.
One solution would be to write that middleware to collect code coverage for vite.
It raises the question though, that it would still run with istanbul and the code fragments it injects for measuring. As for the ecosystem is currently moving more towards native node coverage (through v8), I was wondering if a step-by-step re-architecture might be more useful. In terms, running tests soon in vitest browser mode, wo/ the need for testem soon becomes an option (ok, vitest browser mode would still use istanbul :D).
But for the internals my knowledge is limited, but I want to throw the idea into the room of having multiple parts (packages?) that do various things and can be combined for the test setup one has chosen to. One such part would be do the main translation between gts and whatever istanbul/v8 would understand. Another part is testem middleware and a third one would be a vite plugin that uses them.
So much for my thoughts on this one.