Add function to xpcshell-test harness to output info text

RESOLVED FIXED in mozilla9

Status

Testing
XPCShell Harness
RESOLVED FIXED
7 years ago
7 years ago

People

(Reporter: Unfocused, Assigned: Unfocused)

Tracking

({dev-doc-complete})

unspecified
mozilla9
dev-doc-complete
Points:
---
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

mochitest-browser-chrome tests have an info() function that outputs info text that is unrelated to any pass/fail state. It's useful for tracking where in the test you are, or outputting some state information. 

In xpcshell tests there is dump(), but it has a couple of drawbacks:
* You need to insert the newline yourself
* It's not automatically prepended by TEST-INFO, so you can't always tell what's output from the test vs output from code you're testing (some code modules can output a lot to stdout).
Created attachment 556796 [details] [diff] [review]
Patch v1
Assignee: nobody → bmcbride
Status: NEW → ASSIGNED
Attachment #556796 - Flags: review?(ted.mielczarek)
Note that we don't display stdout from xpcshell tests by default, only if you're running "check-one" or "check-interactive".
Yep, this is for those cases. Also when running a group of tests and one fails.
Attachment #556796 - Flags: review?(ted.mielczarek) → review+
https://hg.mozilla.org/integration/fx-team/rev/f9c574a28a7a
Flags: in-testsuite-
Whiteboard: [fixed-in-fx-team]
Updated the relevant documentation at https://developer.mozilla.org/en/Writing_xpcshell-based_unit_tests
Keywords: dev-doc-complete
http://hg.mozilla.org/mozilla-central/rev/f9c574a28a7a
Status: ASSIGNED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → mozilla9
You need to log in before you can comment on or make changes to this bug.