Closed Bug 683124 Opened 13 years ago Closed 13 years ago

Add function to xpcshell-test harness to output info text

Categories

(Testing :: XPCShell Harness, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla9

People

(Reporter: Unfocused, Assigned: Unfocused)

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

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).
Attached patch Patch v1Splinter Review
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]
http://hg.mozilla.org/mozilla-central/rev/f9c574a28a7a
Status: ASSIGNED → RESOLVED
Closed: 13 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.

Attachment

General

Created:
Updated:
Size: