Closed Bug 707763 Opened 14 years ago Closed 12 years ago

mozdevice needs tests

Categories

(Testing :: Mozbase, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: k0scist, Unassigned)

Details

(Whiteboard: [mozbase])

Currently https://github.com/mozilla/mozbase/tree/master/mozdevice has no tests. Tests should be written to test basic functionality.
Whiteboard: [mozbase]
There are a bunch of devicemanager tests living over here: http://hg.mozilla.org/automation/remote-testing/file/6b8020ffa955/tests
I added a basic test for devicemanagerSUT: https://github.com/mozilla/mozbase/commit/eaf62c5b1e8d1a26c4a0407e3a58ba5c0d715eff It uses a mock object for the agent, so as not to require a physical device to be connected to the machine. This strategy obviously won't work for devicemanagerADB... not really sure what to do there (I guess we could generate a fake adb executable...). I'd like to get some tests going for devicemanagerADB, as well as make sure we're testing all the basic functionality, before closing this bug.
It seems we have tests now. Can/should we close?
We have no tests for devicemanagerADB yet. I'd be okay filing a separate bug for that.
At the moment, it would be rather difficult to write tests for DeviceManagerADB; we'd either have to create a mock adb utility or a mock adb server. wlach suggested rewriting DeviceManagerADB to speak the adb protocol directly, which would allow us to use the same type of system that the SUT tests use, and it would also improve performance. I filed bug 880362 for that, and will close this bug.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.