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.
7 years ago
Attachment #556796 - Flags: review?(ted.mielczarek) → review+
Updated the relevant documentation at https://developer.mozilla.org/en/Writing_xpcshell-based_unit_tests
Status: ASSIGNED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla9
You need to log in before you can comment on or make changes to this bug.