ember-cli-code-coverage
ember-cli-code-coverage copied to clipboard
Add template instrumentation.
This PR adds support for instrumentation of templates roughly the same as JS instrumentation (using a custom set of helpers and a template AST transform to instrument templates).
There are still some issues with this approach that we need to vet/review.
- [ ] Need more testing with "real world" templates.
- [ ] Add logic in
treeFor
to prevent app and addon tree from being emitted unlessCOVERAGE=true
. - [ ] Figure out how to handle instrumentation of usages of
htmlbars-inline-precompiler
. - [x] Fix issues with istanbul parsing coverage data.
- [x] Decide if we are willing to do a major version bump, or if we have to rewrite in ES5.
Paired on this with @rondale-sc.
Decide if we are willing to do a major version bump, or if we have to rewrite in ES5.
@kategengler - Thoughts on this one?
OK, this is working now. Here is an example after running the test suite of Ember Observer:
That's amazing!
Seconding amazing!
For:
Decide if we are willing to do a major version bump, or if we have to rewrite in ES5.
I'm fine with a major version bump.
@rwjblue This does look amazing - any updates?
@rwjblue how can I help get this across the finish line?
Yes, same thoughts about amazing and how can we get this merged?
Also, would it show coverage for the js side of helpers/components?
@knownasilya this is likely on hold, due to the new spike. We'll be updating a lot in the coming weeks.
This looks really nice. Would like to see this make it in 👍
@kategengler @rwjblue Are there any plans on this being completed soon?
The general idea here is still valid, just need to complete off the to do items.
@rwjblue If this is on hold, is there any way i can contribute and get this merged ? Really looking forward to use this.
Given that template only components are a prevalent thing, this would seem even more important