Skip to content
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

Make throw/assertion stack traces useful #280

Merged
merged 2 commits into from
Jul 21, 2017

Conversation

stefanpenner
Copy link
Member

@stefanpenner stefanpenner commented Jul 20, 2017

TODO:

  • tests – who tests the tester
  • confirm with @trentmwillis this is public or can be made public in QUnit.

before:

screen shot 2017-07-19 at 8 38 34 pm

after:

screen shot 2017-07-19 at 8 36 18 pm

@scalvert
Copy link
Contributor

This is a great step in the right direction. 👍

@stefanpenner stefanpenner force-pushed the make-stack-traces-useful branch 2 times, most recently from 332bc02 to 381012e Compare July 20, 2017 04:19
@stefanpenner
Copy link
Member Author

test failures look unrelated to this... But i'll investigate in the AM

@rwjblue
Copy link
Member

rwjblue commented Jul 20, 2017

Not sure what needs to be confirmed RE: QUnit. assert.pushResult is definitely public...

@rwjblue
Copy link
Member

rwjblue commented Jul 20, 2017

Also, LGTM.

@stefanpenner stefanpenner force-pushed the make-stack-traces-useful branch 4 times, most recently from 4120664 to 7028f4b Compare July 20, 2017 14:58
@stefanpenner stefanpenner force-pushed the make-stack-traces-useful branch from 7028f4b to 04beda0 Compare July 20, 2017 15:06
@stefanpenner
Copy link
Member Author

@rwjblue this PR also fixes CI/tests

Copy link
Member

@trentmwillis trentmwillis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much nicer, thanks for working on this!

@stefanpenner stefanpenner force-pushed the make-stack-traces-useful branch from 80eb2de to 48b663a Compare July 20, 2017 15:57
@stefanpenner
Copy link
Member Author

@rwjblue / @trentmwillis either of you guys got time to release. I think this can be a minor version.

@@ -1,6 +1,30 @@
import Ember from 'ember';
import QUnit from 'qunit';

function unhandledRejectionAssertion(current, error) {
Copy link
Member Author

@stefanpenner stefanpenner Jul 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

part 1/2 of the important bit of code:

@@ -19,6 +43,6 @@ export default Ember.Test.Adapter.extend({
},

exception(error) {
QUnit.config.current.assert.ok(false, Ember.inspect(error));
unhandledRejectionAssertion(QUnit.config.current, error);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

part 2/2 of the important bit of code:

@stefanpenner
Copy link
Member Author

getting trolled by something strange, where some bower deps have an invalid ember.debug.js..... @rwjblue any ideas? I opened a dedicated tracking issue -> emberjs/ember.js#15533

@stefanpenner stefanpenner force-pushed the make-stack-traces-useful branch from 48b663a to 2707061 Compare July 21, 2017 14:53
@stefanpenner stefanpenner merged commit 9361254 into master Jul 21, 2017
@stefanpenner stefanpenner deleted the make-stack-traces-useful branch July 21, 2017 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants