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

Print exceptions and pass exception error object into results #1845

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aljimenez
Copy link
Contributor

When trying to fix a failing test, it is extremely important to know the call stack of any occurring exception; just knowing the error message is usually not enough to pin point the problem, so it would be useful if exceptions are printed and if results have access to the exception itself.

When trying to fix a failing test, it is extremely important to know the call stack of any occurring exceptions; just knowing the error message is usually not enough to pin point the problem, so it would be useful also have access to the exception itself.
@yahoocla
Copy link

CLA is valid!

@aljimenez aljimenez changed the title Pass exception error object into results Print exceptions and pass exception error object into results May 28, 2014
@@ -99,7 +99,7 @@ if (!YUI.YUITest) {
break;

case this.TEST_FAIL_EVENT:
message = event.testName + ": failed.\n" + event.error.getMessage();
message = event.testName + ": failed.\n" + event.error.stack;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is much more useful to see the stack, when trying to fix failing tests.

@okuryu
Copy link
Member

okuryu commented May 29, 2014

Perhaps you should make a PR for yui/yuitest repo.

@caridy is working to sync up between yui/yui3 and yui/yuitest. See yui/yuitest#26.

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.

3 participants