Closed
Bug 342377
Opened 18 years ago
Closed 18 years ago
Add do_ensure to the test harness
Categories
(Core :: General, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(1 file, 1 obsolete file)
893 bytes,
patch
|
davel
:
review+
|
Details | Diff | Splinter Review |
I find myself writing do_check_eq(... , true); a whole lot. do_ensure would just save some typing. ;)
Assignee | ||
Updated•18 years ago
|
Blocks: test-harness
Assignee | ||
Comment 1•18 years ago
|
||
Attachment #226612 -
Flags: review?(davel)
Assignee | ||
Updated•18 years ago
|
Version: 1.8 Branch → Trunk
Comment 2•18 years ago
|
||
I'm leaning towards standardizing on *unit-named tests, like assertTrue, assertEquals, ... Also, I'm not sure how long-lived this set of methods will be, since it may be easier to port tests to a slightly different harness (still based on xpcshell, but more like jsunit) than to try to add the reporting and invocation infrastructure to this set of code. As a short-term comprimise, would you be willing to rename do_ensure() to do_check_true()? -Dave, who with this comment just wiped out the amount of typing saved in test cases
Assignee | ||
Comment 3•18 years ago
|
||
Attachment #226612 -
Attachment is obsolete: true
Attachment #226654 -
Flags: review?(davel)
Attachment #226612 -
Flags: review?(davel)
Updated•18 years ago
|
Attachment #226654 -
Flags: review?(davel) → review+
Assignee | ||
Comment 4•18 years ago
|
||
Checked in. Thanks!
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 5•18 years ago
|
||
Er, actually checked in now for real.
You need to log in
before you can comment on or make changes to this bug.
Description
•