Open
Bug 1159108
Opened 9 years ago
Updated 2 years ago
Assertions for single test need to be factored out as a utility method in selftest.py
Categories
(Testing :: XPCShell Harness, defect)
Testing
XPCShell Harness
Tracking
(Not tracked)
NEW
People
(Reporter: hiro, Assigned: hiro)
Details
Attachments
(1 file)
19.00 KB,
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → hiikezoe
Assignee | ||
Comment 1•9 years ago
|
||
Create two new method named assertSingleTestPassed and assertSingleTestFailed, and use these methods as possible. https://treeherder.mozilla.org/#/jobs?repo=try&revision=b5788123f46b
Attachment #8598459 -
Flags: review?(ted)
Comment 2•9 years ago
|
||
Comment on attachment 8598459 [details] [diff] [review] Proposed patch Review of attachment 8598459 [details] [diff] [review]: ----------------------------------------------------------------- ::: testing/xpcshell/selftest.py @@ +454,5 @@ > + self.assertEquals(1, self.x.testCount) > + self.assertEquals(0, self.x.passCount) > + self.assertEquals(1, self.x.failCount) > + self.assertEquals(0, self.x.todoCount) > + self.assertNotInLog(TEST_PASS_STRING) Is there a reason you didn't put `self.assertInLog(TEST_FAIL_STRING)` in here? All the call sites seem to call that.
Attachment #8598459 -
Flags: review?(ted) → review+
Comment 3•9 years ago
|
||
Also thanks for the patch!
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•