Closed Bug 683124 Opened 9 years ago Closed 9 years ago
Add function to xpcshell-test harness to output info text
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).
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+
Updated the relevant documentation at https://developer.mozilla.org/en/Writing_xpcshell-based_unit_tests
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla9
You need to log in before you can comment on or make changes to this bug.