Closed
Bug 1208057
Opened 9 years ago
Closed 7 years ago
Luciddream should be able to run devtools tests in js directly
Categories
(Testing :: General, defect)
Testing
General
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: ochameau, Unassigned)
References
Details
Attachments
(2 files, 3 obsolete files)
16.68 KB,
patch
|
Details | Diff | Splinter Review | |
17.99 KB,
patch
|
Details | Diff | Splinter Review |
In relation to bug 1208050, it would be great to reference existing devtools tests directly in luciddream.ini. These existing tests are devtools mochitests. The goal of luciddream is to be able to run them against remote targets like simulator/b2g-desktop/mulet or devices. (Instead of running them only against firefox webpages) So that we can know when our tools regress against these remote targets. But in order to do that, we have to educate luciddream harness to handle Javascript files directly.
Reporter | ||
Comment 1•9 years ago
|
||
Here is a WIP patch. This adds a LucidDreamJavascriptTestCase similar to MarionetteJSTestCase. It includes a bunch of devtools specifics in luciddream but it is really nice to be able to reference existing mochitests file like this. May be there is some ways to put some more logic in /devtools instead of /testing/luciddream?
Reporter | ||
Comment 2•9 years ago
|
||
Attachment #8665419 -
Attachment is obsolete: true
Reporter | ||
Comment 3•9 years ago
|
||
Spliting the patch in two: - this one, dedicated to luciddream python code: * Introduced the JavascriptTestCase, make it so that we can run a js file instead of python. * Run /devtools/shared/luciddream/b2g-head.js in b2g runtime once for all tests /browser-head.js in desktop runtime before each test * Execute each test (with browser-head.js first, head.js and the test itself)
Attachment #8666729 -
Attachment is obsolete: true
Reporter | ||
Comment 4•9 years ago
|
||
- this other one, dedicated to test helpers in javascript: * b2g-head.js setup prefs/settings to have a decent test environment * browser-head.js do the same thing in firefox, but also fake a Mochitest environment and hook critical devtools test helpers like `openInspector` method in order to target an app context via webide (instead of a regular tab in Fx). * also tweak test-actor and head.js to connect all the things.
Reporter | ||
Comment 5•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=09d57fe11e74
Reporter | ||
Comment 6•9 years ago
|
||
Fixed duplicated test actor fronts that creates random breakages.
Attachment #8668494 -
Attachment is obsolete: true
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•