Closed
Bug 916797
Opened 11 years ago
Closed 11 years ago
Mochitest(-plain/browser/chrome) should support run-until-failure when running multiple tests
Categories
(Testing :: Mochitest, defect)
Testing
Mochitest
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla28
People
(Reporter: Gijs, Assigned: Felipe)
References
Details
Attachments
(1 file)
7.32 KB,
patch
|
jmaher
:
review+
Gijs
:
feedback+
|
Details | Diff | Splinter Review |
... so that when used with --keep-open, it just runs tests until the test you're interested in fails. Right now debugging test failures that depend on the mess that earlier tests made of the browser window is a pain, and you can't use --keep-open in a useful way (also because there's no way to specify multiple file paths). We should fix this.
Reporter | ||
Updated•11 years ago
|
Status: ASSIGNED → NEW
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → felipc
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•11 years ago
|
||
Run-until-failure as implemented (bug 875463) right now works by stopping execution at the "reloop" step of a test run, which made it mostly useful for single tests run. But there are more use cases now where run-until-failure is useful to be used with more than 1 test running, so this patch makes it able to stop execution at the "next test" step, as it's meant to be. For m-plain (TestRunner.js) it was easy, as there's an existing _haltTests functionality that I can use (and fix reloop to respect that flag which it didn't before) For m-chrome|browser (browser-test.js) I tried just calling TestRunner.finish, which kinda worked but when it was called there were already scheduled clean-up functions that would print errors because there were being called at the wrong time. So I implemented an analogous haltTests function that just skips whatever tests are remaining and let the harness do its clean-up properly.
Attachment #826995 -
Flags: review?(jmaher)
Attachment #826995 -
Flags: feedback?(gijskruitbosch+bugs)
Assignee | ||
Updated•11 years ago
|
Blocks: 875463
Summary: Mochitest(-browser/chrome) should support run-until-failure when running multiple tests → Mochitest(-plain/browser/chrome) should support run-until-failure when running multiple tests
Reporter | ||
Comment 2•11 years ago
|
||
Comment on attachment 826995 [details] [diff] [review] 916797 Review of attachment 826995 [details] [diff] [review]: ----------------------------------------------------------------- From a casual glance, this looks OK. Thanks for working on this!
Attachment #826995 -
Flags: feedback?(gijskruitbosch+bugs) → feedback+
Comment 3•11 years ago
|
||
Comment on attachment 826995 [details] [diff] [review] 916797 Review of attachment 826995 [details] [diff] [review]: ----------------------------------------------------------------- this looks very useful, thanks!
Attachment #826995 -
Flags: review?(jmaher) → review+
Assignee | ||
Comment 4•11 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/34307fd1289e
Comment 5•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/34307fd1289e
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
You need to log in
before you can comment on or make changes to this bug.
Description
•