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

Template coverage

Open mukilane opened this issue 4 years ago • 21 comments

In continuation of #103

mukilane avatar Jun 12 '21 15:06 mukilane

@rwjblue #103 seemed dormat for quite a while, so I took it up. Basically I'd,

  • Rebased to master and refactored the code a bit.
  • Handled branches and attribute nodes.
  • Handled actions
  • Added some tests
  • Added include/exclude option

There are still some areas where some pointers would be helpful.

  • How to introduce this change ? I've added it as an opt-in configuration templateCoverage to prevent breaking users' existing thresholds in CI.
  • While this works for app, somehow it is not working for addon. The plugin in not invoked for addon files (though it is called for tests files). Am I missing anything here ?

Can you help me out ?

Coverage report of the test component image

mukilane avatar Jul 11 '21 19:07 mukilane

@rwjblue / @kategengler Any inputs on this ?

mukilane avatar Aug 10 '21 15:08 mukilane

This would be great to merge!

gabrielcsapo avatar Mar 10 '22 00:03 gabrielcsapo

I definitely want this feature. However, I don't know enough about this feature to evaluate the PR, maybe @rwjblue or @thoov (as a recent contributor), could review?

kategengler avatar Mar 10 '22 00:03 kategengler

More than happy to rebase this PR or open up one with the fixes @thoov @rwjblue if needed

gabrielcsapo avatar Mar 10 '22 00:03 gabrielcsapo

Can I help in anyway? This could be handy for us too.

Gorzas avatar Jul 13 '22 08:07 Gorzas

bump - Really looking forward to this!

tehhowch avatar Jan 09 '23 15:01 tehhowch

Also very interested in this feature! If needed, I'm happy to help get it over the finish line.

camerondubas avatar Mar 03 '23 12:03 camerondubas

@kategengler I think we should consider just merging this and hoping for the best. I don't think anyone with deep knowledge of this work is around and able to review. Thoughts?

RobbieTheWagner avatar Jul 11 '23 16:07 RobbieTheWagner

To note, tests don't seem to have run here, so we need to make sure CI runs and passes before merging.

RobbieTheWagner avatar Jul 11 '23 16:07 RobbieTheWagner

@kategengler I think we should consider just merging this and hoping for the best. I don't think anyone with deep knowledge of this work is around and able to review. Thoughts?

To me, this is a scary statement because this means there's also nobody around with knowledge of this work to fix any bugs once released. I could be convinced if someone tries it out on a few apps, though.

kategengler avatar Jul 11 '23 18:07 kategengler

@kategengler I think we should consider just merging this and hoping for the best. I don't think anyone with deep knowledge of this work is around and able to review. Thoughts?

To me, this is a scary statement because this means there's also nobody around with knowledge of this work to fix any bugs once released. I could be convinced if someone tries it out on a few apps, though.

@kategengler

I haven't had the chance to revist this so far.

I'll revist it again, this weekend, and maybe I can find what I am missing while running for addons.

Also, I need some clarity on how we will release this. Opt-in seems sensible, so I'll proceed with that. If needed we can change that.

I have few real world apps, engines and addons. So will share any findings with that as well.

mukilane avatar Jul 11 '23 19:07 mukilane

Definitely opt-in at first, and then in the next major version or two, after refinement, make it opt-out. My team's apps would need a little work to get upgraded to the version this lands in, but after that I'd happily help report issues / attempt fixes.

tehhowch avatar Jul 19 '23 13:07 tehhowch

Any updates on this?

vstefanovic97 avatar Jan 24 '24 23:01 vstefanovic97

@vstefanovic97 in light of your recent additions, perhaps you could pick this back up to get it over the finish line?

RobbieTheWagner avatar Feb 22 '24 14:02 RobbieTheWagner

@RobbieTheWagner I can try :D, The code seems clear to me, but haven't tried to run this at all. I will make a fork an see how it goes, but probably won't be soon, but a slow effort on the side when I have some extra time. I'll write updates here on how it's going next week

vstefanovic97 avatar Feb 22 '24 14:02 vstefanovic97

Would love this feature

kceb avatar Apr 23 '24 22:04 kceb

@RobbieTheWagner I can try :D, The code seems clear to me, but haven't tried to run this at all. I will make a fork an see how it goes, but probably won't be soon, but a slow effort on the side when I have some extra time. I'll write updates here on how it's going next week

@vstefanovic97 any progress on this? I would love to help, but I don't think I have enough knowledge of how this works 😅

RobbieTheWagner avatar Apr 24 '24 12:04 RobbieTheWagner

@RobbieTheWagner tbh I haven't had the time to tackle this at all right now... Not sure when I will get to it :/ If you are interested in taking a stab at this maybe we can setup some time and we can go through the code together, and I can try to explain to you how it works and what the code is doing

vstefanovic97 avatar Apr 24 '24 12:04 vstefanovic97

@vstefanovic97 @mukilane would this support gts files if landed as is?

SergeAstapov avatar Apr 24 '24 16:04 SergeAstapov

@SergeAstapov on first glance, I think it will require some extra work most likely, since probably lines, columns will be off

vstefanovic97 avatar Apr 29 '24 10:04 vstefanovic97