Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/test/js/TestRunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,7 @@
node.parent.results[testName] = {
result: failed ? "fail" : "pass",
message: error ? error.getMessage() : "Test passed",
error: error,
type: "test",
name: testName,
duration: duration
Expand Down
2 changes: 1 addition & 1 deletion src/test/js/YTestWrapAfter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.

messageType = "fail";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should the messageType be "error", such that Y.log prints the exception in red? That would make the exception easier to spot.

break;

Expand Down