ember-cli-code-coverage icon indicating copy to clipboard operation
ember-cli-code-coverage copied to clipboard

coverage is not writing files

Open sbonasu opened this issue 1 year ago • 5 comments

Hi, We have version 1.0.3 in big monorepo and its working fine. Our setup is simple, we have this package as devDep in some packages that opted for code coverage along with config/coverage.js.

When we update the version to 2.0.0 or even latest without any other changes, code coverage is not writing coverage files. There are no errors as well. I used javascript debugger to trace the calls and its hitting https://github.com/ember-cli-code-coverage/ember-cli-code-coverage/blob/master/packages/ember-cli-code-coverage/lib/attach-middleware.js#L254 and after tests are finished its not hitting https://github.com/ember-cli-code-coverage/ember-cli-code-coverage/blob/master/packages/ember-cli-code-coverage/lib/attach-middleware.js#L229

I'm not sure how to troubleshoot further. Can someone please help

sbonasu avatar Aug 23 '24 17:08 sbonasu

I believe this is the same issue as https://github.com/ember-cli-code-coverage/ember-cli-code-coverage/issues/420

On a previous project they downgraded to 1.x in order to get it to work, we are using much newer features and require 3.x so downgrading is not an option.

cah-brian-gantzler avatar Aug 23 '24 20:08 cah-brian-gantzler

I'm not getting any error and also no reports with -s

sbonasu avatar Aug 25 '24 17:08 sbonasu

It is possible that you may need to be on a higher version of 2.x to get it to work, or even 3.x

I do seem to recall a long time ago it not working for me at all until I upgraded to a certain version. Sorry that is not more helpful

cah-brian-gantzler avatar Aug 27 '24 14:08 cah-brian-gantzler

It is possible that you may need to be on a higher version of 2.x to get it to work, or even 3.x

I do seem to recall a long time ago it not working for me at all until I upgraded to a certain version. Sorry that is not more helpful

Anything above 1.0.3 breaks coverage. Tried with latest 3.0.1

sbonasu avatar Aug 27 '24 15:08 sbonasu

For an interim solution, please see: https://github.com/ember-cli-code-coverage/ember-cli-code-coverage/issues/420#issuecomment-2332270042

cah-john-ryan avatar Sep 05 '24 17:09 cah-john-ryan