-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Addon Coverage #31
Conversation
Processed addon js files
I'll squash the commits down before merging (likely into one each for @EWhite613 and myself). @EWhite613 / @sglanzer: Can y'all test this against some of your addons and confirm things are working properly? |
); | ||
|
||
console.log(!fileExists, name, relativePath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to leave this in?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, good catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is still in here; I'm seeing a bunch of console logging right now trying to run things on ember-ajax
that match this pattern
I haven't actually tried it yet, but I'm excited to do so. Thanks for doing this! |
This is exicitng news :). I'll try to test a couple of our addons. Thanks |
try { | ||
return instrumenter.instrumentSync(content, relativePath); | ||
} catch (e) { | ||
console.error('Unable to cover:', relativePath, '. Try setting useBabelInstrumenter to true. \n', e.stack); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice addition!
@rwjblue this PR loos great! Thanks a ton for doing this. |
@rwjblue We've run it against a fresh addon and one of our engines, we can test against a few other addons tomorrow as well - looking 👍 |
@sglanzer - Awesome, thanks for testing! Definitely want as many testers (of various different ember-cli versions if possible) as possible here... |
I can't wait to use this :) great work everyone! Will this be something that easily drops into ember observer I assume? |
Yep, that's the idea... |
👍 Tried it on an addon I have and it "Just Worked (tm)". And more importantly the coverage metrics look accurate. |
Seems to work for me! Should I add |
Checking another addon - is anyone else seeing
but that doesn't appear to have an impact either. Not a huge deal, but would be nice to get those files out. |
@sglanzer I am seeing the same issue. Not a huge deal for me, but would be nice to not do coverage on tests and app, only the addon folder. |
Hmm. The |
I agree with @rwjblue. Addons can provide code in |
@sandersky @rwjblue that is true about the app folder, but I think the issue is most of the app files end up just being |
Yeah, I'm on board with keeping |
@sglanzer - Do you think we should just auto-filter |
I'm cool with that - I'd prefer to start using a release instead of this fork 👍 |
Hehe, confirm. |
ember-cli: 2.7.0 Running 'ember test' passes 23 tests
|
@lukesargeant Any additional info? Do you get similar results on a newer browser (e.g. Phantom 2.x, Chrome, FireFox) |
The failure is in Phantom 1.9.8 https://github.com/lukesargeant/ember-box-utils The only method that touches the dom is:
I imagine the problem is here, or in some tear down in the tests themselves. |
Yeah, I'd be surprised by that as well - my only thought is that the instrumentation wrapper (basically a function call that wraps each line to let us know if it was executed) might be exposing an error that was occurring, but hidden otherwise? Slightly grasping at straws for an explanation of this one without doing some real debugging. It's good to see that Chrome behaves correctly - Phantom 1.x runs an old version of webkit and has given me problems in the past, we avoid it for most of our testing. |
Sexy - that's good news - thanks a ton for the investigation @lukesargeant |
Any further blockers on merging this? Auto-filtering |
+1 would love to switch all my apps and addons to this! |
👍 ditto On Wednesday, September 7, 2016, Robert Wagner notifications@github.com
Arjan |
The only issue I see with all of this work which shouldn't block a merge is the path for files coming from the |
@sandersky doesn't something similar happen with blanket? I know I have to rewrite the names to get accurate reports. |
Yeah, I didn't dig enough to figure out why the path was |
@sandersky +1 for re-writting module/ to addon/ to facilitate editor plugins. Shouldn't block though since this is still useful, but will be the first new issue to raise :-) |
So do we want to try to fix the paths now or are there any issues blocking the merging of this? |
None that I know of, just waiting for the button to be pushed |
I'm deferring to @rwjblue on this, just to be explicit about it. On Wednesday, September 14, 2016, Steven Glanzer notifications@github.com
|
Released as 0.3.0 |
/cc @EWhite613 @sglanzer
Fixes #14.