Closed Bug 892259 Opened 11 years ago Closed 11 years ago

Create a host plugin API so we can have multiple different hosts (think firefox, b2g, device) without changing tests.

Categories

(Firefox OS Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jlal, Assigned: jlal)

References

Details

(Whiteboard: [FT: Productivity], [Sprint: 1])

Attachments

(1 file)

      No description provided.
Blocks: 892262
Blocks: 892264
Component: General → Gaia::Clock
A Pivotal Tracker story has been created for this Bug: http://www.pivotaltracker.com/story/show/53204469
Component: Gaia::Clock → General
Dylan Oliver deleted the linked story in Pivotal Tracker
Do we have more details for this bug?
Depends on: 895165
Assignee: nobody → jlal
Here is my proposal for the host api:

https://gist.github.com/lightsofapollo/6042626

The child would be responsible for invoking the host and then passing the port/etc.. metadata to the actual process running the tests.
The PR for the b2g-desktop host should probably be reviewed/landed first- 95% of the "framework" code is in this PR but I omitted the final integration test until we land the b2g-desktop host. I will then integrate that with this code so we always a default host...
Attachment #779061 - Flags: review?(gaye)
So this looks good to me. I did have one question about adding getters for things like the child process and marionette port to the public api. What do you think?
Flags: needinfo?(jlal)
Port I agree on- child process is another story and should be an implementation detail of the host itself... Think about the case where we have a device there will be no process. The less we expose here the more portability we get I think.
Flags: needinfo?(jlal) → needinfo?(gaye)
Blocks: 897809
in master https://github.com/lightsofapollo/marionette-js-runner/commit/acc3f76e96aca36347c074833a88d5519b3ad9f8
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(gaye)
Resolution: --- → FIXED
Dylan Oliver added a comment in Pivotal Tracker:   
   
.
Dylan Oliver deleted the linked story in Pivotal Tracker
Dylan Oliver changed story state to accepted in Pivotal Tracker
Attachment #779061 - Flags: review?(gaye) → review+
Whiteboard: [FT: Productivity], [Sprint: 1]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: