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)
Testing
XPCShell Harness
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla9
People
(Reporter: Unfocused, Assigned: Unfocused)
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
1.06 KB,
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
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 | ||
Comment 1•13 years ago
|
||
Assignee: nobody → bmcbride
Status: NEW → ASSIGNED
Attachment #556796 -
Flags: review?(ted.mielczarek)
Comment 2•13 years ago
|
||
Note that we don't display stdout from xpcshell tests by default, only if you're running "check-one" or "check-interactive".
Assignee | ||
Comment 3•13 years ago
|
||
Yep, this is for those cases. Also when running a group of tests and one fails.
Updated•13 years ago
|
Attachment #556796 -
Flags: review?(ted.mielczarek) → review+
Assignee | ||
Comment 4•13 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/f9c574a28a7a
Flags: in-testsuite-
Whiteboard: [fixed-in-fx-team]
Assignee | ||
Comment 5•13 years ago
|
||
Updated the relevant documentation at https://developer.mozilla.org/en/Writing_xpcshell-based_unit_tests
Keywords: dev-doc-complete
Comment 6•13 years ago
|
||
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.
Description
•