bugzilla.mozilla.org will be intermittently unavailable on Saturday, March 24th, from 16:00 until 20:00 UTC.

Split desktop_unittest.py into per-harness scripts



Release Engineering
3 years ago
3 years ago


(Reporter: jgraham, Unassigned)


Firefox Tracking Flags

(Not tracked)




3 years ago
desktop_unittest.py is rather complex, and it seems like a large amount of this complexity comes from sharing a single frontend to multiple harnesses, which necessitates a complex configuration format and inline if-blocks to handle cases that are nevertheless too complex. Replacing this with simpler per-harness script files and code sharing via inheritance/composition rather than configuration would be a win for maintainability.

Comment 1

3 years ago

Comment 2

3 years ago

this is overdue for a cleanup.

It was my first intern project and was designed for mochitest, reftest, and xpcshell. It has obviously not scaled well, particularly the way we have so many edge cases now: in-tree configs, suite specific tests.zip extraction, log parsing, unique platform  behaviour for special suites that act like mochitest but are not.
You need to log in before you can comment on or make changes to this bug.